summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2009-01-06 23:41:18 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-07 00:59:15 +0100
commit383099fd636deacf698b91b4c96d0d6d01e6dc79 (patch)
treed7cbbc220794407a160863ce12f54e06244e95d6 /scripts/checkpatch.pl
parentcheckpatch: widen implied comment detection to allow multiple stars (diff)
downloadlinux-383099fd636deacf698b91b4c96d0d6d01e6dc79.tar.xz
linux-383099fd636deacf698b91b4c96d0d6d01e6dc79.zip
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>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl5
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 {
MODULE_PARAM_DESC|
DECLARE_PER_CPU|
DEFINE_PER_CPU|
- __typeof__\(
+ __typeof__\(|
+ \.$Ident\s*=\s*
}x;
- #print "REST<$rest>\n";
+ #print "REST<$rest> dstat<$dstat>\n";
if ($rest ne '') {
if ($rest !~ /while\s*\(/ &&
$dstat !~ /$exceptions/)