summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-02-21 16:44:17 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 17:22:26 -0800
commite8eb3997ce2f5887472a674b32f295b0196ecf46 (patch)
tree85cec0f6a05582bf6e255b4492026d863cc59fc3 /scripts
parent10d83f07103f3af0d7e8d73d8d5ffa76e900fd04 (diff)
downloadtalos-obmc-linux-e8eb3997ce2f5887472a674b32f295b0196ecf46.tar.gz
talos-obmc-linux-e8eb3997ce2f5887472a674b32f295b0196ecf46.zip
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>
Diffstat (limited to 'scripts')
-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",
OpenPOWER on IntegriCloud