From: Joe Perches Date: Wed, 20 Feb 2013 02:15:35 +0000 (+1100) Subject: checkpatch: don't emit the CamelCase warning for PageFoo X-Git-Tag: next-20130220~1^2~288 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1d29816116d832f28b7cdc556de53152a40daae0;p=karo-tx-linux.git checkpatch: don't emit the CamelCase warning for PageFoo I'm getting a ton of these: WARNING: Avoid CamelCase: #140: FILE: mm/migrate.c:1576: + if (PageTransHuge(page) && page_count(page) != 3) { So exclude anything which starts with "Page". Tested-by: Andrew Morton Signed-off-by: Andrew Morton --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 3dcfbc9c6db4..2c50eb4c4e66 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2930,6 +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]/ && !defined $camelcase{$var}) { $camelcase{$var} = 1; WARN("CAMELCASE",