Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1441930

[PATCH 1/2] checkpatch: Skip long lines that use an EFI_GUID macro

From Joe Perches <joe@perches.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] checkpatch: Skip long lines that use an EFI_GUID macro
Date 2016-07-13 02:20 +0200
Message-ID <rUg4a-3O9-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


These are also possible single line uses that exceed the
generic maximum line length (typically 80 columns)

Signed-off-by: Joe Perches <joe@perches.com>
---
 scripts/checkpatch.pl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 4904ced..cc787e6 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2764,6 +2764,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
-- 
2.8.0.rc4.16.g56331f8

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 1/2] checkpatch: Skip long lines that use an EFI_GUID macro Joe Perches <joe@perches.com> - 2016-07-13 02:20 +0200

csiph-web