forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
adf96e6f51
commit
be987d9f80
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user