]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb00720e3f8fc00bac1b6e66398205403285ba683
tree95a5dcebb9046e280ed829391f2d2f8458cd349e
parent2b19bda136606b4e89ac749984f625020c127c9e
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