summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2009-01-06 14:41:17 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-06 15:59:15 -0800
commit83242e0c239aaa33e757584605f788ac1eca2f0f (patch)
treefa114470eebf1bb00dc97ad6a0620a5f5cc4d308 /scripts
parent721c1cb60e0546d2e71b9aa50426c94e69c6521a (diff)
downloadlinux-83242e0c239aaa33e757584605f788ac1eca2f0f.tar.gz
linux-83242e0c239aaa33e757584605f788ac1eca2f0f.tar.bz2
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')
-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;
}