checkpatch: statement/block context analyser should look at sanitised lines
authorAndy Whitcroft <apw@canonical.com>
Tue, 26 Oct 2010 21:23:19 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:21 +0000 (16:52 -0700)
commit01464f30a97c5c30bf9633309b27cce055cef8fd
tree5ba4eb55ff1b520cbbc82f5f32a7bc81c666d8da
parent3cbf62df3a8ce61cb1aa20b7dae964058988bfdd
checkpatch: statement/block context analyser should look at sanitised lines

When tracking context to find a block or statement we need to use the
sanitised lines, else perentheses '(' & ')' and braces '{' & '}' can throw
the scanner out.  Also fix up a couple of error outputs which include
those sanitised lines incorrectly.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl