diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 19690a2ddb746a2bcad699eb907f1ddb6b0c5fb2..6eceda7a4bd9d43acb530d92dcd34a6cf0e39601 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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");