From: Joe Perches Date: Thu, 28 Feb 2013 01:02:38 +0000 (-0800) Subject: checkpatch: improve CamelCase test for Page X-Git-Tag: v3.9-rc1~46^2~162 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=be987d9f80354e2e919926349282facd74992f90;p=~emulex%2Finfiniband.git checkpatch: improve CamelCase test for Page Add the ClearPage/SetPage/TestClearPage/TestSetPage variants to the not reported Page CamelCase variables. Signed-off-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 747bcd768da..b28cc384a5b 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2930,7 +2930,7 @@ sub process { my $var = $1; if ($var !~ /$Constant/ && $var =~ /[A-Z]\w*[a-z]|[a-z]\w*[A-Z]/ && - $var !~ /^Page[A-Z]/ && + $var !~ /"^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ && !defined $camelcase{$var}) { $camelcase{$var} = 1; WARN("CAMELCASE",