Skip to content

Commit be987d9

Browse files
JoePerchestorvalds
authored andcommitted
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>
1 parent adf96e6 commit be987d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/checkpatch.pl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2930,7 +2930,7 @@ sub process {
29302930
my $var = $1;
29312931
if ($var !~ /$Constant/ &&
29322932
$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]/ &&
29342934
!defined $camelcase{$var}) {
29352935
$camelcase{$var} = 1;
29362936
WARN("CAMELCASE",

0 commit comments

Comments
 (0)