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)
commit306708547b566ef6a0ccd470c84568807571885c
tree028c2ab4d3abefe272cf6ad02e11f10474d0b667
parent6f779c18ca74358b6ac8eb8f5d502843fa92be4e
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