summaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2016-08-03 00:04:31 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2016-08-03 02:35:10 +0300
commitd560a5f8a46e98c2f83c5fe699e1d6f6393a14cf (patch)
tree60b0e1f0e2da74151998c3d6a034dfb697f86e77 /scripts/checkpatch.pl
parenta098ecd2fa7db8fa4fcc178a43627b29b226edb9 (diff)
downloadlinux-d560a5f8a46e98c2f83c5fe699e1d6f6393a14cf.tar.xz
checkpatch: skip long lines that use an EFI_GUID macro
These are also possible single line uses that exceed the generic maximum line length (typically 80 columns) Link: http://lkml.kernel.org/r/32a6a85fbd6161f1bb55ce176a464e44591afc5b.1468368420.git.joe@perches.com Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 24a08363995a..a4476b61e93f 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