From: Andy Whitcroft Date: Tue, 6 Jan 2009 22:41:17 +0000 (-0800) Subject: checkpatch: widen implied comment detection to allow multiple stars X-Git-Tag: v2.6.29-rc1~353 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=83242e0c239aaa33e757584605f788ac1eca2f0f;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 7c17e95bf36..a305aa52b8b 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; }