aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-02-21 19:44:17 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 20:22:26 -0500
commite8eb3997ce2f5887472a674b32f295b0196ecf46 (patch)
tree85cec0f6a05582bf6e255b4492026d863cc59fc3 /scripts
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>
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 {
2930 my $var = $1; 2930 my $var = $1;
2931 if ($var !~ /$Constant/ && 2931 if ($var !~ /$Constant/ &&
2932 $var =~ /[A-Z]\w*[a-z]|[a-z]\w*[A-Z]/ && 2932 $var =~ /[A-Z]\w*[a-z]|[a-z]\w*[A-Z]/ &&
2933 $var !~ /^Page[A-Z]/ &&
2933 !defined $camelcase{$var}) { 2934 !defined $camelcase{$var}) {
2934 $camelcase{$var} = 1; 2935 $camelcase{$var} = 1;
2935 WARN("CAMELCASE", 2936 WARN("CAMELCASE",