From: Andy Whitcroft Date: Tue, 6 Jan 2009 22:41:18 +0000 (-0800) Subject: checkpatch: structure member assignments are not complex X-Git-Tag: v2.6.29-rc1~352 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=383099fd636deacf698b91b4c96d0d6d01e6dc79;p=linux-2.6-omap-h63xx.git checkpatch: structure member assignments are not complex Ensure we do not trigger the complex macros checks on structure member assignment, for example: #define foo .bar = 10 Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index a305aa52b8b..9208ec64af9 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2167,9 +2167,10 @@ sub process { MODULE_PARAM_DESC| DECLARE_PER_CPU| DEFINE_PER_CPU| - __typeof__\( + __typeof__\(| + \.$Ident\s*=\s* }x; - #print "REST<$rest>\n"; + #print "REST<$rest> dstat<$dstat>\n"; if ($rest ne '') { if ($rest !~ /while\s*\(/ && $dstat !~ /$exceptions/)