diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 0fdb0738cdf4..0249b153651b 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3246,6 +3246,10 @@ sub process { } elsif ($rawline =~ /^\+.*\b[a-z][\w\.\+\-]*:\/\/\S+/i) { $msg_type = ""; + # Long copyright statements are another special case + } elsif ($rawline =~ /^\+.\*.*copyright.*\(c\).*$/i) { + $msg_type = ""; + # Otherwise set the alternate message types # a comment starts before $max_line_length