checkpatch: allow DEFINE_PER_CPU definitions to exceed line length
PATCH 43/94 checkpatch: allow DEFINE_PER_CPU definitions to exceed line length
From: Joe Perches <[email protected]>
Subject: 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 25528213fe9f75f4 ("tags: Fix DEFINE_PER_CPU expansions") for more details.
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]>
---
scripts/checkpatch.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-allow-define_per_cpu-definitions-to-exceed-line-length +3 -2
@@ -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
_