diff options
author | Joe Perches <joe@perches.com> | 2013-07-03 15:05:27 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 16:07:44 -0700 |
commit | 3cc4b1c3f0d283f4bb8d49059bd6df8e7af7558b (patch) | |
tree | 7ac539f3e668317e1fa2f9f2e283d80eecc7333f /scripts | |
parent | 9d7a34a5135d29b840d074ba8fbb9c2fac63e508 (diff) | |
download | linux-3cc4b1c3f0d283f4bb8d49059bd6df8e7af7558b.tar.gz linux-3cc4b1c3f0d283f4bb8d49059bd6df8e7af7558b.tar.bz2 linux-3cc4b1c3f0d283f4bb8d49059bd6df8e7af7558b.zip |
checkpatch: reduce false positive rate of "complex macros"
Allow "#define foo struct.member" without bleating a warning.
This also allows "#define foo bar.baz->qux" and so on.
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-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index f4e247b277de..93b8e6693cb1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3041,7 +3041,7 @@ sub process { if ($dstat ne '' && $dstat !~ /^(?:$Ident|-?$Constant),$/ && # 10, // foo(), $dstat !~ /^(?:$Ident|-?$Constant);$/ && # foo(); - $dstat !~ /^[!~-]?(?:$Ident|$Constant)$/ && # 10 // foo() // !foo // ~foo // -foo + $dstat !~ /^[!~-]?(?:$Lval|$Constant)$/ && # 10 // foo() // !foo // ~foo // -foo // foo->bar // foo.bar->baz $dstat !~ /^'X'$/ && # character constants $dstat !~ /$exceptions/ && $dstat !~ /^\.$Ident\s*=/ && # .foo = |