summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2009-01-06 23:41:17 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-07 00:59:15 +0100
commit83242e0c239aaa33e757584605f788ac1eca2f0f (patch)
treefa114470eebf1bb00dc97ad6a0620a5f5cc4d308 /scripts/checkpatch.pl
parentcheckpatch: comment detection may miss an implied comment on the last hunk (diff)
downloadlinux-83242e0c239aaa33e757584605f788ac1eca2f0f.tar.xz
linux-83242e0c239aaa33e757584605f788ac1eca2f0f.zip
checkpatch: widen implied comment detection to allow multiple stars
Some people use double star '**' as a comment continuation, and start comments with complete lines of stars. Widen the implied comment detection to pick these up. 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>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 7c17e95bf36f..a305aa52b8b1 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1109,7 +1109,7 @@ sub process {
# is the start of a diff block and this line starts
# ' *' then it is very likely a comment.
if (!defined $edge &&
- $rawlines[$linenr] =~ m@^.\s* \*(?:\s|$)@)
+ $rawlines[$linenr] =~ m@^.\s*(?:\*\*+| \*)(?:\s|$)@)
{
$in_comment = 1;
}