From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753585AbbFXOz3 (ORCPT ); Wed, 24 Jun 2015 10:55:29 -0400 Received: from smtprelay0148.hostedemail.com ([216.40.44.148]:55394 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752830AbbFXOzY (ORCPT ); Wed, 24 Jun 2015 10:55:24 -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:1539:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3351:3653:3865:3870:3871:3872:5007:6261:10004:10400:10848:11026:11658:11914:12296:12517:12519:12555:13069:13221:13229:13311:13357:14394:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: foot26_6903ab57ccd4e X-Filterd-Recvd-Size: 1978 Message-ID: <1435157720.9377.11.camel@perches.com> Subject: [PATCH -next] checkpatch: Fix long line messages about patch context From: Joe Perches To: Andrew Morton Cc: Dan Carpenter , Greg Donald , LKML Date: Wed, 24 Jun 2015 07:55:20 -0700 In-Reply-To: <20150624144325.GL30834@mwanda> References: <1434833768-8336-1-git-send-email-gdonald@gmail.com> <20150622111014.GB3355@sudip-PC> <20150623080134.GH28762@mwanda> <1435100814.2504.23.camel@perches.com> <20150624093722.GK30834@mwanda> <1435156387.9377.3.camel@perches.com> <20150624144325.GL30834@mwanda> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.11-0ubuntu3 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 Changes in ("checkpatch: categorize some long line length checks") now erroneously reports long line defects in patch context. Fix it. Reported-by: Dan Carpenter Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 90e1edc..d5c8e9a 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2599,7 +2599,7 @@ sub process { # if LONG_LINE is ignored, the other 2 types are also ignored # - if ($length > $max_line_length) { + if ($line =~ /^\+/ && $length > $max_line_length) { my $msg_type = "LONG_LINE"; # Check the allowed long line types first