From: Joe Perches Date: Fri, 22 Feb 2013 00:44:17 +0000 (-0800) Subject: checkpatch: don't emit the CamelCase warning for PageFoo X-Git-Tag: upstream/snapshot3+hdmi~5683^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8eb3997ce2f5887472a674b32f295b0196ecf46;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 3dcfbc9..2c50eb4 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",