From: Andy Whitcroft Date: Tue, 26 Oct 2010 21:23:11 +0000 (-0700) Subject: checkpatch: fix regressions in "fix handling of leading spaces" X-Git-Tag: v2.6.37-rc1~105^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b4c5bebcebb0a48d29947e9aa749650751a7696;p=pandora-kernel.git checkpatch: fix regressions in "fix handling of leading spaces" The patch "checkpatch: fix handling of leading spaces" added checks for leading spaces on lines, but this introduces regressions. Firstly it does not correctly detect when we are in a comment. Secondly it does not allow for preprocessor command spacing. Finally it does not allow for label indentation which is required to be less than one tab. Fix these up: Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed