Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 383099fd authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Linus Torvalds
Browse files

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: default avatarAndy Whitcroft <apw@shadowen.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 83242e0c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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/)