From: Joe Perches Date: Tue, 21 Aug 2012 23:15:53 +0000 (-0700) Subject: checkpatch: add control statement test to SINGLE_STATEMENT_DO_WHILE_MACRO X-Git-Tag: v3.6-rc3~8^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac8e97f8a742828daa1d9de37f6e635888f8d71e;p=pandora-kernel.git checkpatch: add control statement test to SINGLE_STATEMENT_DO_WHILE_MACRO Commit b13edf7ff2dd ("checkpatch: add checks for do {} while (0) macro misuses") added a test that is overly simplistic for single statement macros. Macros that start with control tests should be enclosed in a do {} while (0) loop. Add the necessary control tests to the check. Signed-off-by: Joe Perches Acked-by: Andy Whitcroft Tested-by: Franz Schrober Cc: Stephen Rothwell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed