diff options
author | Andy Whitcroft <apw@canonical.com> | 2010-10-26 14:23:18 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 16:52:20 -0700 |
commit | 5eaa20b984eb316533b4a098d8de3912e434df6a (patch) | |
tree | 91df836f5b4fdd7745fde745adec27c4edeccb1a /scripts | |
parent | 015830be9779aeae7de7060b07a3157a8e41bcb4 (diff) | |
download | linux-3.10-5eaa20b984eb316533b4a098d8de3912e434df6a.tar.gz linux-3.10-5eaa20b984eb316533b4a098d8de3912e434df6a.tar.bz2 linux-3.10-5eaa20b984eb316533b4a098d8de3912e434df6a.zip |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 53b2eaecba0..d5361e49aba 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2476,8 +2476,8 @@ sub process { \.$Ident\s*=\s*| ^\"|\"$ }x; - #print "REST<$rest> dstat<$dstat>\n"; - if ($rest ne '') { + #print "REST<$rest> dstat<$dstat> ctx<$ctx>\n"; + if ($rest ne '' && $rest ne ',') { if ($rest !~ /while\s*\(/ && $dstat !~ /$exceptions/) { |