]> git.baikalelectronics.ru Git - kernel.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)
commit6ecec65b16e2cec871d6f382304818054515d51b
tree9d09ae6cfc89e72078ccf7f436fdfa7cd33a7519
parent639c84eb586a3bc4a96e1525d366ef59b71d8dec
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