mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-04-03 12:53:50 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Reference in a new issue