]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - scripts/checkpatch.pl
checkpatch: macros which define structure members are not complex
[linux-2.6-omap-h63xx.git] / scripts / checkpatch.pl
index 19690a2ddb746a2bcad699eb907f1ddb6b0c5fb2..6eceda7a4bd9d43acb530d92dcd34a6cf0e39601 100755 (executable)
@@ -2155,6 +2155,7 @@ sub process {
                                if ($dstat ne '' &&
                                    $dstat !~ /^(?:$Ident|-?$Constant)$/ &&
                                    $dstat !~ /$exceptions/ &&
+                                   $dstat !~ /^\.$Ident\s*=/ &&
                                    $dstat =~ /$Operators/)
                                {
                                        ERROR("Macros with complex values should be enclosed in parenthesis\n" . "$here\n$ctx\n");