diff options
author | Andy Whitcroft <apw@shadowen.org> | 2009-01-06 17:41:18 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 18:59:15 -0500 |
commit | 383099fd636deacf698b91b4c96d0d6d01e6dc79 (patch) | |
tree | d7cbbc220794407a160863ce12f54e06244e95d6 | |
parent | 83242e0c239aaa33e757584605f788ac1eca2f0f (diff) |
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 <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rwxr-xr-x | scripts/checkpatch.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index a305aa52b8b1..9208ec64af9d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -2167,9 +2167,10 @@ sub process { | |||
2167 | MODULE_PARAM_DESC| | 2167 | MODULE_PARAM_DESC| |
2168 | DECLARE_PER_CPU| | 2168 | DECLARE_PER_CPU| |
2169 | DEFINE_PER_CPU| | 2169 | DEFINE_PER_CPU| |
2170 | __typeof__\( | 2170 | __typeof__\(| |
2171 | \.$Ident\s*=\s* | ||
2171 | }x; | 2172 | }x; |
2172 | #print "REST<$rest>\n"; | 2173 | #print "REST<$rest> dstat<$dstat>\n"; |
2173 | if ($rest ne '') { | 2174 | if ($rest ne '') { |
2174 | if ($rest !~ /while\s*\(/ && | 2175 | if ($rest !~ /while\s*\(/ && |
2175 | $dstat !~ /$exceptions/) | 2176 | $dstat !~ /$exceptions/) |