Commit cc147506 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds

checkpatch: allow DEFINE_PER_CPU definitions to exceed line length

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 25528213 ("tags: Fix DEFINE_PER_CPU expansions") for more
details.

Link: http://lkml.kernel.org/r/1508170320.6530.15.camel@perches.comSigned-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent eeef5733
...@@ -2900,8 +2900,9 @@ sub process { ...@@ -2900,8 +2900,9 @@ sub process {
$line =~ /^\+\s*#\s*define\s+\w+\s+$String$/) { $line =~ /^\+\s*#\s*define\s+\w+\s+$String$/) {
$msg_type = ""; $msg_type = "";
# EFI_GUID is another special case # More special cases
} elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/) { } elsif ($line =~ /^\+.*\bEFI_GUID\s*\(/ ||
$line =~ /^\+\s*(?:\w+)?\s*DEFINE_PER_CPU/) {
$msg_type = ""; $msg_type = "";
# Otherwise set the alternate message types # Otherwise set the alternate message types
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment