checkpatch: allow DEFINE_PER_CPU definitions to exceed line length
authorJoe Perches <[email protected]>
Fri, 17 Nov 2017 23:28:44 +0000 (15:28 -0800)
committerLinus Torvalds <[email protected]>
Sat, 18 Nov 2017 00:10:02 +0000 (16:10 -0800)
Some of the definitions are very long and can't be split into multiple
lines because ctags is limited.

Exempt these lines from the line length checks.

See commit 25528213fe9f ("tags: Fix DEFINE_PER_CPU expansions") for more
details.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Joe Perches <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl

index 2a8c6c3c1bdb4dae23d6b8630c6ef99bc577e256..5fa0f5467d9936f2b43a0153460a279500840ad4 100755 (executable)
@@ -2900,8 +2900,9 @@ sub process {
                                 $line =~ /^\+\s*#\s*define\s+\w+\s+$String$/) {
                                $msg_type = "";
 
-                       # EFI_GUID is another special case
-                       } elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/) {
+                       # More special cases
+                       } elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/ ||
+                                $line =~ /^\+\s*(?:\w+)?\s*DEFINE_PER_CPU/) {
                                $msg_type = "";
 
                        # Otherwise set the alternate message types