Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755656AbbGPP7B (ORCPT ); Thu, 16 Jul 2015 11:59:01 -0400 Received: from smtprelay0087.hostedemail.com ([216.40.44.87]:49175 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750769AbbGPP67 (ORCPT ); Thu, 16 Jul 2015 11:58:59 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:69:355:379:541:599:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:2895:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3874:4321:4605:5007:6261:6691:7974:10004:10400:10848:11026:11232:11658:11914:12043:12291:12294:12517:12519:12555:12679:12683:12740:13069:13095:13161:13229:13311:13357:14110: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: stop01_312c2b927d329 X-Filterd-Recvd-Size: 2277 Message-ID: <1437062336.2495.6.camel@perches.com> Subject: Re: Checkpatch: False positive From: Joe Perches To: Andy Whitcroft Cc: Viresh Kumar , linux-kernel@vger.kernel.org, Dan Carpenter , Andrew Morton Date: Thu, 16 Jul 2015 08:58:56 -0700 In-Reply-To: <20150716154341.GJ3681@bark> References: <20150716105554.GA14080@linux> <1437060958.16262.28.camel@perches.com> <20150716154341.GJ3681@bark> 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 Content-Length: 1586 Lines: 55 On Thu, 2015-07-16 at 16:43 +0100, Andy Whitcroft wrote: > On Thu, Jul 16, 2015 at 08:35:58AM -0700, Joe Perches wrote: > > > #31: > > > arch/x86/kernel/hpet.c | 198 ++++++++++++++++++++++++++--------------- > > I guess those are in the limbo land between the end of message and > beginning of the patch itself. Perhaps the test should at least stop at > the end of header marker, at the '---'. > > -apw Maybe, but the test already stops at signatures like Signed-off-by: that should always be above the ---. This might help, but there are _many_ false positives. The other thing that might help is for people to take the warnings the script produces less seriously. Maybe convert: ERROR -> defect WARNING -> unstylish CHECK -> nitpick or some such --- scripts/checkpatch.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index d5ce29a..5e7afa7 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2213,6 +2213,11 @@ sub process { $in_commit_log = 0; } +# Check for patch separator + if ($line =~ /^---$/) { + $in_commit_log = 0; + } + # Check if MAINTAINERS is being updated. If so, there's probably no need to # emit the "does MAINTAINERS need updating?" message on file add/move/delete if ($line =~ /^\s*MAINTAINERS\s*\|/) { -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/