diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 24a08363995adeeda264cacd801bebf9cc48b5c6..a4476b61e93f6ca5e19fc3f8029913c16200f0c3 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2763,6 +2763,10 @@ sub process { $line =~ /^\+\s*#\s*define\s+\w+\s+$String$/) { $msg_type = ""; + # EFI_GUID is another special case + } elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/) { + $msg_type = ""; + # Otherwise set the alternate message types # a comment starts before $max_line_length