]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: ensure we only apply checks to the lines within hunks
authorAndy Whitcroft <apw@shadowen.org>
Thu, 16 Oct 2008 05:02:28 +0000 (22:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:36 +0000 (11:21 -0700)
commit54c7fb8f2c7f411e3c24e212797c44a6f840216a
tree028c2ab4d3abefe272cf6ad02e11f10474d0b667
parent05fcf9e9bea68f522af285959fad6b684fcf8a1f
checkpatch: ensure we only apply checks to the lines within hunks

We should only apply source checks to lines within hunks.  Checks which
are anchored in the context may falsly trigger in the commentory.  Ensure
they only match within valid hunk 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