diff options
author | Andy Whitcroft <apw@canonical.com> | 2012-03-23 18:02:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-23 19:58:36 -0400 |
commit | b9df76ac76da351cd4f6ba52369e9a64e9ab686d (patch) | |
tree | b02d82a012dbf249d8b8f89b530681eaa26e52bd /scripts | |
parent | daebc534ac15f991961a5bb433e515988220e9bf (diff) |
checkpatch: allow simple character constants in #defines
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
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 061c28e7bcfa..95ba30a24dcf 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -2911,6 +2911,7 @@ sub process { | |||
2911 | $dstat !~ /^(?:$Ident|-?$Constant),$/ && # 10, // foo(), | 2911 | $dstat !~ /^(?:$Ident|-?$Constant),$/ && # 10, // foo(), |
2912 | $dstat !~ /^(?:$Ident|-?$Constant);$/ && # foo(); | 2912 | $dstat !~ /^(?:$Ident|-?$Constant);$/ && # foo(); |
2913 | $dstat !~ /^(?:$Ident|-?$Constant)$/ && # 10 // foo() | 2913 | $dstat !~ /^(?:$Ident|-?$Constant)$/ && # 10 // foo() |
2914 | $dstat !~ /^'X'$/ && # character constants | ||
2914 | $dstat !~ /$exceptions/ && | 2915 | $dstat !~ /$exceptions/ && |
2915 | $dstat !~ /^\.$Ident\s*=/ && # .foo = | 2916 | $dstat !~ /^\.$Ident\s*=/ && # .foo = |
2916 | $dstat !~ /^do\s*$Constant\s*while\s*$Constant;?$/ && # do {...} while (...); // do {...} while (...) | 2917 | $dstat !~ /^do\s*$Constant\s*while\s*$Constant;?$/ && # do {...} while (...); // do {...} while (...) |