diff options
author | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-11-14 21:16:07 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-11-15 13:02:14 +0300 |
commit | 4d055711a6df2817c8106b7678f7148f9ca0355c (patch) | |
tree | 277824c3ee497b00ef4c525d7562deee3dda2f57 /scripts/checkpatch.pl | |
parent | 111e333bc608333042b5fb3939dcfad9105dad86 (diff) |
checkpatch: remove cunit warnings
CUnit names all it's functions with CU_. For check patch is
is camelcase, which is not proper odp syntax. This patch
turns off camelcase warnings for functions/types beginning
with CU_.
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-x | scripts/checkpatch.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b954de583..57d0a24ee 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2940,6 +2940,7 @@ sub process { if ($var !~ /$Constant/ && $var =~ /[A-Z]\w*[a-z]|[a-z]\w*[A-Z]/ && $var !~ /"^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ && + $var !~ /\bCU_/ && !defined $camelcase{$var}) { $camelcase{$var} = 1; WARN("CAMELCASE", |