checkpatch: fix regressions in "fix handling of leading spaces"
authorAndy Whitcroft <apw@canonical.com>
Tue, 26 Oct 2010 21:23:11 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:19 +0000 (16:52 -0700)
commit6b4c5bebcebb0a48d29947e9aa749650751a7696
tree95a5dcebb9046e280ed829391f2d2f8458cd349e
parent658716d19f8f155c67d4677ba68034b8e492dfbe
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 <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl