From: Andy Whitcroft Date: Tue, 22 Sep 2009 00:04:38 +0000 (-0700) Subject: checkpatch: format strings should not have brackets in macros X-Git-Tag: v2.6.32-rc1~429 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea71a0a019f913bdf506103bd90140d93a2b83f0;p=platform%2Fkernel%2Flinux-3.10.git 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: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index e3c6b49..57df906 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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 '') {