]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: report the real first line of all suspect indents
authorAndy Whitcroft <apw@shadowen.org>
Thu, 16 Oct 2008 05:02:21 +0000 (22:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:35 +0000 (11:21 -0700)
commit4b115dc4b1bb58db114d93ff3875f6d1a56732fc
tree9b329c20dd57496414b2b78bdddd9a9f5fc5dc6d
parent20186935bb837e8d69782b8d6efcf8a73315896a
checkpatch: report the real first line of all suspect indents

We are currently only reporting syspect indents if the conditional is
modified but the indent missmatch could be generated by the body changing,
make sure we catch both.  Also only report the first line of the body, and
more importantly make sure we report the raw copy of the line.  Finally
report the indent levels to make it easier to understand what is wrong.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl