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:
Родитель
adf96e6f51
Коммит
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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче