diff options
author | Joe Perches <joe@perches.com> | 2013-02-27 17:02:38 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-27 19:10:08 -0800 |
commit | be987d9f80354e2e919926349282facd74992f90 (patch) | |
tree | 218d560f3eb8f04701729f6f0dd9cd538df146e8 | |
parent | adf96e6f514a9e87aa3d26c8c9c03eca5be53df0 (diff) | |
download | linux-3.10-be987d9f80354e2e919926349282facd74992f90.tar.gz linux-3.10-be987d9f80354e2e919926349282facd74992f90.tar.bz2 linux-3.10-be987d9f80354e2e919926349282facd74992f90.zip |
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 <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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", |