Commit 5eaa20b984eb316533b4a098d8de3912e434df6a
Committed by
Linus Torvalds
1 parent
015830be97
Exists in
master
and in
7 other branches
checkpatch: clean up structure definition macro handline
Handle definitions such as the following correctly, it is not a complex statement: #define PREALLOC(NAME, START, END, FLAGS) { \ .name = (NAME), \ .start = (START), \ .end = (END), \ .flags = (FLAGS) \ }, Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
scripts/checkpatch.pl
... | ... | @@ -2476,8 +2476,8 @@ |
2476 | 2476 | \.$Ident\s*=\s*| |
2477 | 2477 | ^\"|\"$ |
2478 | 2478 | }x; |
2479 | - #print "REST<$rest> dstat<$dstat>\n"; | |
2480 | - if ($rest ne '') { | |
2479 | + #print "REST<$rest> dstat<$dstat> ctx<$ctx>\n"; | |
2480 | + if ($rest ne '' && $rest ne ',') { | |
2481 | 2481 | if ($rest !~ /while\s*\(/ && |
2482 | 2482 | $dstat !~ /$exceptions/) |
2483 | 2483 | { |