checkpatch: macros which define structure members are not complex
[pandora-kernel.git] / scripts / checkpatch.pl
index 19690a2..6eceda7 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");