diff options
author | Joe Perches <joe@perches.com> | 2013-02-27 20:02:38 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-27 22:10:08 -0500 |
commit | be987d9f80354e2e919926349282facd74992f90 (patch) | |
tree | 218d560f3eb8f04701729f6f0dd9cd538df146e8 /scripts | |
parent | adf96e6f514a9e87aa3d26c8c9c03eca5be53df0 (diff) |
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>
Diffstat (limited to 'scripts')
-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 747bcd768da0..b28cc384a5bc 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -2930,7 +2930,7 @@ sub process { | |||
2930 | my $var = $1; | 2930 | my $var = $1; |
2931 | if ($var !~ /$Constant/ && | 2931 | if ($var !~ /$Constant/ && |
2932 | $var =~ /[A-Z]\w*[a-z]|[a-z]\w*[A-Z]/ && | 2932 | $var =~ /[A-Z]\w*[a-z]|[a-z]\w*[A-Z]/ && |
2933 | $var !~ /^Page[A-Z]/ && | 2933 | $var !~ /"^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ && |
2934 | !defined $camelcase{$var}) { | 2934 | !defined $camelcase{$var}) { |
2935 | $camelcase{$var} = 1; | 2935 | $camelcase{$var} = 1; |
2936 | WARN("CAMELCASE", | 2936 | WARN("CAMELCASE", |