]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
checkpatch: macros: fix statement counting block end detection
authorAndy Whitcroft <apw@shadowen.org>
Thu, 24 Jul 2008 04:29:00 +0000 (21:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:25 +0000 (10:47 -0700)
commita3bb97a7aba36055d476896ed6393ab35a119d5b
tree9d09ae6cfc89e72078ccf7f436fdfa7cd33a7519
parent6ef9b297f6e8850da3be9c9ff5f00385c0977004
checkpatch: macros: fix statement counting block end detection

We are incorrectly counting the lines in a block while accumulating
the trailing lines in a macro statement, leading to false positives.
Fix end of block handling and general counting for negative context lines.

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