diff options
author | Joe Perches <joe@perches.com> | 2013-02-21 16:44:17 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 17:22:26 -0800 |
commit | e8eb3997ce2f5887472a674b32f295b0196ecf46 (patch) | |
tree | 85cec0f6a05582bf6e255b4492026d863cc59fc3 /scripts | |
parent | 10d83f07103f3af0d7e8d73d8d5ffa76e900fd04 (diff) | |
download | linux-3.10-e8eb3997ce2f5887472a674b32f295b0196ecf46.tar.gz linux-3.10-e8eb3997ce2f5887472a674b32f295b0196ecf46.tar.bz2 linux-3.10-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-x | scripts/checkpatch.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 3dcfbc9c6db..2c50eb4c4e6 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", |