]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: fix stepping through statements with $stat and ctx_statement_block
authorJoe Perches <joe@perches.com>
Mon, 10 Jul 2017 22:52:13 +0000 (15:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 10 Jul 2017 23:32:35 +0000 (16:32 -0700)
commit8d4b3d5b9ed2be88ebeee64d8535561f1fc1a7e4
tree3d3390aa3c2784989d7b1165743a29af122e157e
parent33bf2c23d1ced8313e8f5c748888d77de0594dde
checkpatch: fix stepping through statements with $stat and ctx_statement_block

Fix the off-by-one in the suppression of lines in a statement block.

This means that for multiple line statements like

foo(bar,
    baz,
    qux);

$stat has been inspected first correctly for the entire statement,
and subsequently incorrectly just for

    qux);

This fix will help make tracking appropriate indentation a little easier.

Link: http://lkml.kernel.org/r/71b25979c90412133c717084036c9851cd2b7bcb.1496862585.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl