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

checkpatch: format strings should not have brackets in macros



We should not recommend braces for the following:

    #define pr_fmt(fmt)    "%s: " fmt, __func__

allow things with double quotes round them to avoid this check.

Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 77f5b10a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2288,7 +2288,8 @@ sub process {
				DECLARE_PER_CPU|
				DEFINE_PER_CPU|
				__typeof__\(|
				\.$Ident\s*=\s*
				\.$Ident\s*=\s*|
				^\"|\"$
			}x;
			#print "REST<$rest> dstat<$dstat>\n";
			if ($rest ne '') {