From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754556AbdJPQMH (ORCPT ); Mon, 16 Oct 2017 12:12:07 -0400 Received: from smtprelay0028.hostedemail.com ([216.40.44.28]:46116 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754542AbdJPQME (ORCPT ); Mon, 16 Oct 2017 12:12:04 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3865:3866:3868:3871:4321:5007:10004:10400:10848:11026:11473:11658:11914:12043:12555:12760:13069:13095:13311:13357:13439:14181:14394:14659:14721:21080:21433:21451:21627:30054,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: glove81_2ee723d44734e X-Filterd-Recvd-Size: 1826 Message-ID: <1508170320.6530.15.camel@perches.com> Subject: [PATCH] checkpatch: Allow DEFINE_PER_CPU definitions to exceed line length From: Joe Perches To: Mark Rutland , daniel.lezcano@linaro.org, Andrew Morton Cc: marc.zyngier@arm.com, tglx@linutronix.de, ard.biesheuvel@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Mon, 16 Oct 2017 09:12:00 -0700 In-Reply-To: <20171016152839.14964-3-mark.rutland@arm.com> References: <20171016152839.14964-1-mark.rutland@arm.com> <20171016152839.14964-3-mark.rutland@arm.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 2a8c6c3c1bdb..5fa0f5467d99 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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