commit | a3bb97a7aba36055d476896ed6393ab35a119d5b | [log] [tgz] |
---|---|---|
author | Andy Whitcroft <apw@shadowen.org> | Wed Jul 23 21:29:00 2008 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Thu Jul 24 10:47:25 2008 -0700 |
tree | 9d09ae6cfc89e72078ccf7f436fdfa7cd33a7519 | |
parent | 6ef9b297f6e8850da3be9c9ff5f00385c0977004 [diff] |
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>