Commit be987d9f authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds

checkpatch: improve CamelCase test for Page

Add the ClearPage/SetPage/TestClearPage/TestSetPage variants to the not
reported Page CamelCase variables.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent adf96e6f
...@@ -2930,7 +2930,7 @@ sub process { ...@@ -2930,7 +2930,7 @@ sub process {
my $var = $1; my $var = $1;
if ($var !~ /$Constant/ && if ($var !~ /$Constant/ &&
$var =~ /[A-Z]\w*[a-z]|[a-z]\w*[A-Z]/ && $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}) { !defined $camelcase{$var}) {
$camelcase{$var} = 1; $camelcase{$var} = 1;
WARN("CAMELCASE", WARN("CAMELCASE",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment