Commit 383099fd636deacf698b91b4c96d0d6d01e6dc79
Committed by
Linus Torvalds
1 parent
83242e0c23
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff
scripts/checkpatch.pl
... | ... | @@ -2167,9 +2167,10 @@ |
2167 | 2167 | MODULE_PARAM_DESC| |
2168 | 2168 | DECLARE_PER_CPU| |
2169 | 2169 | DEFINE_PER_CPU| |
2170 | - __typeof__\( | |
2170 | + __typeof__\(| | |
2171 | + \.$Ident\s*=\s* | |
2171 | 2172 | }x; |
2172 | - #print "REST<$rest>\n"; | |
2173 | + #print "REST<$rest> dstat<$dstat>\n"; | |
2173 | 2174 | if ($rest ne '') { |
2174 | 2175 | if ($rest !~ /while\s*\(/ && |
2175 | 2176 | $dstat !~ /$exceptions/) |