Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp688089ybv; Thu, 13 Feb 2020 07:47:40 -0800 (PST) X-Google-Smtp-Source: APXvYqyJMzwrqFB7AmwV03F/k3tLwnbbmgIRax/yqqcTXrfnpKrB1bkrBL/FY9jFa5YR0RIJ6U1t X-Received: by 2002:a05:6830:114c:: with SMTP id x12mr14048803otq.324.1581608860368; Thu, 13 Feb 2020 07:47:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581608860; cv=none; d=google.com; s=arc-20160816; b=Bxc+8nwEFXCR9V/jIotnPfWP9pn4Dn9DDmmojtmzpY8xMP8jUfcSUSClJiNcueKZOb MGMumLWbfq8OJEs9u9yoC8gkEiS9q0XzMiLmvtqstZ3D9nj2PMXUF9TMftHy5ayLIac3 4W1xPO14lfYrrzFSbgDQuV5s+ygoIgpEVlFkBaUZpboDNlQA2PYrIC/AUgheIfNHaCIf syLMsQNPMcT/OmVQGwdXFmzbumiovaO+MiDlydA0vUXexZowNTIcazYgpme8vvca9DBm AG7ZFWJbdxevhX6nKWpojZQq5EeVppOkrr5xg4+vle1a+dT9AiA/2NVp5JBEYicCc+gP L+JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=wpg5kpPs3zKFipLHjfEy59QaNK5cuXBQaxhQnWBIUxU=; b=UsgxJMzGCOo/BrvniZ1aJcHxsvddeigXMQ5RdgBF1dL82q04wj1wYWoLiBgDLA18MP WDn+HQXgSL86AAyRJDb7A9uSUay/PAx7WbO64YnLydG4WT6PqJMIBcF/TL/ZeUKVEuUO LG1Hr0g0tFDJKP6ms6dGtKMnuGorwlExZi24eYnjgevPlx3qRU/LAr0/96KTivtbR3n7 pDB4+A2EpUSXZK4AIrXW2xRpiyktgpxa5hijUZh9AW3vEGI3HWAlZhCDv3n5un3M1Cjk WkB/ToD+zOZkNo36/lcwWdFxcVwvCWU2eor173m7TnCeCv6oUjdszgj05hiO2GwxemMl bORg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si1372839oih.217.2020.02.13.07.47.28; Thu, 13 Feb 2020 07:47:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728768AbgBMPqY (ORCPT + 99 others); Thu, 13 Feb 2020 10:46:24 -0500 Received: from smtprelay0089.hostedemail.com ([216.40.44.89]:58096 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729347AbgBMP1R (ORCPT ); Thu, 13 Feb 2020 10:27:17 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 3742A182CF66A; Thu, 13 Feb 2020 15:27:16 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:599:800:960:967:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1431:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2525:2560:2563:2682:2685:2731:2828:2859:2895:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:7974:8957:9025:10004:10400:10848:11026:11232:11658:11914:12043:12297:12438:12555:12740:12760:12895:13439:14093:14097:14181:14659:14721:21080:21325:21451:21611:21627:21740:21939:30054:30064:30070:30080:30091,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:7,LUA_SUMMARY:none X-HE-Tag: brick88_5c65b482ae422 X-Filterd-Recvd-Size: 3028 Received: from XPS-9350.home (unknown [47.151.143.254]) (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA; Thu, 13 Feb 2020 15:27:14 +0000 (UTC) Message-ID: <19c18048e1fdec0b3db5c9a1b58f2b83514a6419.camel@perches.com> Subject: Re: [PATCH v2 1/1] checkpatch: support "base-commit:" format From: Joe Perches To: John Hubbard , Andrew Morton Cc: Andy Whitcroft , Jonathan Corbet , Konstantin Ryabitsev , LKML Date: Thu, 13 Feb 2020 07:25:57 -0800 In-Reply-To: <20200213055004.69235-2-jhubbard@nvidia.com> References: <20200213055004.69235-1-jhubbard@nvidia.com> <20200213055004.69235-2-jhubbard@nvidia.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-02-12 at 21:50 -0800, John Hubbard wrote: > In order to support the get-lore-mbox.py tool described in [1], I ran: > > git format-patch --base= --cover-letter > > ...which generated a "base-commit: " tag at the end of the > cover letter. However, checkpatch.pl generated an error upon encounting > "base-commit:" in the cover letter: > > "ERROR: Please use git commit description style..." > > ...because it found the "commit" keyword, and failed to recognize that > it was part of the "base-commit" phrase, and as such, should not be > subjected to the same commit description style rules. > > Update checkpatch.pl to include a special case for "base-commit:" (at > the start of the line, possibly with some leading whitespace) so > that that tag no longer generates a checkpatch error. > > [1] https://lwn.net/Articles/811528/ "Better tools for kernel > developers" > > Cc: Andy Whitcroft > Suggested-by: Joe Perches Acked-by: Joe Perches Andrew, can you pick this up please? > Cc: Konstantin Ryabitsev > Cc: Jonathan Corbet > Signed-off-by: John Hubbard > --- > scripts/checkpatch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index a63380c6b0d2..1e66fc7a2f2f 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -2761,7 +2761,7 @@ sub process { > > # Check for git id commit length and improperly formed commit descriptions > if ($in_commit_log && !$commit_log_possible_stack_dump && > - $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink):/i && > + $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink|base-commit):/i && > $line !~ /^This reverts commit [0-9a-f]{7,40}/ && > ($line =~ /\bcommit\s+[0-9a-f]{5,}\b/i || > ($line =~ /(?:\s|^)[0-9a-f]{12,40}(?:[\s"'\(\[]|$)/i &&