From 50a847b5c8e8312fc41f964acd20f0dc80ea1713 Mon Sep 17 00:00:00 2001 From: Andy Whitcroft Date: Wed, 15 Oct 2008 22:02:31 -0700 Subject: [PATCH] --- yaml --- r: 114776 b: refs/heads/master c: b132e5d5865325a9aa42b122c4c466903bf48348 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/checkpatch.pl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 1121f59b0a25..5a23c4cf424d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 170d3a22688f06fda42e353bbccd0f3df89f3d94 +refs/heads/master: b132e5d5865325a9aa42b122c4c466903bf48348 diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index 19690a2ddb74..6eceda7a4bd9 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/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");