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_.

Signed-off-by: Maxim Uvarov <[email protected]>
---
 scripts/checkpatch.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index b954de5..cdb221c 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2940,7 +2940,9 @@ 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",
                                     "Avoid CamelCase: <$var>\n" . $herecurr);
-- 
1.8.5.1.163.gd7aced9


_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to