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; }