aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Perches2013-02-21 16:44:17 -0800
committerLinus Torvalds2013-02-21 17:22:26 -0800
commite8eb3997ce2f5887472a674b32f295b0196ecf46 (patch)
tree85cec0f6a05582bf6e255b4492026d863cc59fc3
parent10d83f07103f3af0d7e8d73d8d5ffa76e900fd04 (diff)
checkpatch: don't emit the CamelCase warning for PageFoo
I'm getting a ton of these: WARNING: Avoid CamelCase: <PageTransHuge> #140: FILE: mm/migrate.c:1576: + if (PageTransHuge(page) && page_count(page) != 3) { So exclude anything which starts with "Page". Tested-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rwxr-xr-xscripts/checkpatch.pl1
1 files changed, 1 insertions, 0 deletions
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",