]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit4d001e4d88a57ba8347b43e3a20412cd6b67fbd7
tree9b329c20dd57496414b2b78bdddd9a9f5fc5dc6d
parent6ecd967444223cea4a02d55fdc0f0510baa69523
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