aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-08-06 19:10:31 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-06 21:01:27 -0400
commit356fd398135480363402cd334ac3218be56b7201 (patch)
treebbb47f09a241e08a168fa7742e67283cfdf3dd93 /scripts
parent032a4c0f9a77ce565355c6e191553e853ba66f09 (diff)
checkpatch: fix complex macro false positive for escaped constant char
A single escaped constant char is not a complex macro. Signed-off-by: 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-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index d833b737a295..cadf70f0201a 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3772,7 +3772,7 @@ sub process {
3772 $dstat !~ /^(?:$Ident|-?$Constant),$/ && # 10, // foo(), 3772 $dstat !~ /^(?:$Ident|-?$Constant),$/ && # 10, // foo(),
3773 $dstat !~ /^(?:$Ident|-?$Constant);$/ && # foo(); 3773 $dstat !~ /^(?:$Ident|-?$Constant);$/ && # foo();
3774 $dstat !~ /^[!~-]?(?:$Lval|$Constant)$/ && # 10 // foo() // !foo // ~foo // -foo // foo->bar // foo.bar->baz 3774 $dstat !~ /^[!~-]?(?:$Lval|$Constant)$/ && # 10 // foo() // !foo // ~foo // -foo // foo->bar // foo.bar->baz
3775 $dstat !~ /^'X'$/ && # character constants 3775 $dstat !~ /^'X'$/ && $dstat !~ /^'XX'$/ && # character constants
3776 $dstat !~ /$exceptions/ && 3776 $dstat !~ /$exceptions/ &&
3777 $dstat !~ /^\.$Ident\s*=/ && # .foo = 3777 $dstat !~ /^\.$Ident\s*=/ && # .foo =
3778 $dstat !~ /^(?:\#\s*$Ident|\#\s*$Constant)\s*$/ && # stringification #foo 3778 $dstat !~ /^(?:\#\s*$Ident|\#\s*$Constant)\s*$/ && # stringification #foo