Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6666021ybv; Wed, 12 Feb 2020 17:08:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzJ8bJwQO0eaKn4qp0e95JEYD2e6VyoujJxq2bmnQftZ/a0PN8ytgVgHP8fWs9yNtO30qjn X-Received: by 2002:aca:8d5:: with SMTP id 204mr1228348oii.141.1581556082551; Wed, 12 Feb 2020 17:08:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581556082; cv=none; d=google.com; s=arc-20160816; b=czr0E6edfDfaRmo4lNkL1iegy9XhUUyv6OmzeRn3Nq1UgN5NqsOc2tIgixuE9yVmSv suvYZlcZEUD0CeXOB0UCzUEL20VUa14UCMPYSVY7a01Vs4MxittBWLLGYWb5SYy9tyzj kv4mUpVSzaqqPxOQWgtvJlPLeq4RdBWYQZW9mTgwciCuW9Mqlo7xOhBLf9f/LEmbbC0Z WUgQSvEVtoJuJY4x9uhdAESXkPyratz4yvnX7MKEb+ZzTECUalDp1aOjaf9g7nN9cNgV PgjsP/0H7sJiohwp6ZnlT8jvFpwKP5xBON0+TTV8rOjQD/gfa20ce63Ihi/w7gMBK/q1 T3Kg== 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=R7xavZzKuuSiJ9+6MCi9POs208Nyl+rksMaWz0wdOzs=; b=uPlPUBtr7XHKO6rMEUMPo8XD1+WbiutZHtaWrrZDqq68GhePVKCKQeM85SVf56ZO8p Mz7rt49obMplKIT+UQExkHqwqmMgs9Nz4zyFxLaDjBoJei5tWSk9VXWQuyPoppMUlGx7 zEt2R5RJcx7pdr0NVnHAPKpEFOoFg1G9M14hUrJJDmRophUy0Ycb5Mzi5Mr2qSG47pll mcZTm1H1Kfhuy/aS+ZnA/L8pOKQeM2I7zaP2VIbyA4vyoZIWk5LXqmUmjNNUXu/L0jd8 8PgDh/VP9uooX02XJJ6xmcYsfN+sEWbgJKSQN3kxQ6tSy9+mky2ryGOzGfPrswC52z3Z sBYg== 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 j16si254018otq.23.2020.02.12.17.07.46; Wed, 12 Feb 2020 17:08:02 -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 S1729329AbgBMBHj (ORCPT + 99 others); Wed, 12 Feb 2020 20:07:39 -0500 Received: from smtprelay0195.hostedemail.com ([216.40.44.195]:40902 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729185AbgBMBHj (ORCPT ); Wed, 12 Feb 2020 20:07:39 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 91339100E7B45; Thu, 13 Feb 2020 01:07:38 +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:1541: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:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:8957:9025:10004:10400:10848:11026:11232:11658:11914:12043:12297:12438:12555:12740:12760:12895:13069:13311:13357:13439:14093:14097:14181:14659:14721:21080: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:4,LUA_SUMMARY:none X-HE-Tag: game83_861e6c704e14 X-Filterd-Recvd-Size: 2872 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 01:07:37 +0000 (UTC) Message-ID: Subject: Re: [PATCH 1/1] checkpatch: support "base-commit:" format From: Joe Perches To: John Hubbard Cc: Andy Whitcroft , Jonathan Corbet , Konstantin Ryabitsev , LKML Date: Wed, 12 Feb 2020 17:06:19 -0800 In-Reply-To: <20200212233221.47662-2-jhubbard@nvidia.com> References: <20200212233221.47662-1-jhubbard@nvidia.com> <20200212233221.47662-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 15:32 -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:", so > that that tag no longer generates a checkpatch error. > > [1] https://lwn.net/Articles/811528/ "Better tools for kernel > developers" > > Cc: Andy Whitcroft > Cc: Joe Perches > Cc: Konstantin Ryabitsev > Cc: Jonathan Corbet > Signed-off-by: John Hubbard > --- > scripts/checkpatch.pl | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index a63380c6b0d2..f241865cedb3 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -2761,6 +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 !~ /base-commit:/ && If this base-commit: entry is only at the start of line, I presume this should actually be $line !~ /^base-commit:/ && or maybe $line !~ /^\s*base-commit:/ && > $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink):/i && > $line !~ /^This reverts commit [0-9a-f]{7,40}/ && > ($line =~ /\bcommit\s+[0-9a-f]{5,}\b/i ||