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>
This commit is contained in:
Andy Whitcroft 2010-10-26 14:23:18 -07:00 committed by Linus Torvalds
parent 015830be97
commit 5eaa20b984
1 changed files with 2 additions and 2 deletions

View File

@ -2476,8 +2476,8 @@ sub process {
\.$Ident\s*=\s*| \.$Ident\s*=\s*|
^\"|\"$ ^\"|\"$
}x; }x;
#print "REST<$rest> dstat<$dstat>\n"; #print "REST<$rest> dstat<$dstat> ctx<$ctx>\n";
if ($rest ne '') { if ($rest ne '' && $rest ne ',') {
if ($rest !~ /while\s*\(/ && if ($rest !~ /while\s*\(/ &&
$dstat !~ /$exceptions/) $dstat !~ /$exceptions/)
{ {