Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp176160ybv; Wed, 12 Feb 2020 21:52:22 -0800 (PST) X-Google-Smtp-Source: APXvYqykAc5SuPom1yU6sAAmh2YlJ/US9imBUkAaT8422WIJvPOfvTTe4EdU61pRsHaFIk8eLDqF X-Received: by 2002:a54:4195:: with SMTP id 21mr1804305oiy.92.1581573142488; Wed, 12 Feb 2020 21:52:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581573142; cv=none; d=google.com; s=arc-20160816; b=S6VCVduRVkyHdGE3IM0wwiKCZ0k6bd/qK0V6M9qWzSf20X4gJ68l+SXB1Sir57OwIg fzSPC+BgtFhT61UZkwVOk+suGb4+4v9f0vzGS6r+KMzBlYQ1hT/pTXQOvR7G09s8iQ3X fVYvwmOgzvSlyQ1laMa/zckN0WpFGyNlSmc9xCo/YCaUIMKftmGNSCTECJDQ7i4D22Or vzT3TEyXd7my+Murh3iWz99UwN6bIMNv7nWT/WlBaR23akl+wQrVjKRC0egQSh7qCAmm g6UXp+3hglNHmre72zj+ffWkpqfSiaVDTGPaxlmZrFwWglXXB3MvCTPrSilDgucFJRM9 FCpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=2fzW1cFQcCv8wV+9ogMJBPeSWfZqvFADlLbfZGyZt3Y=; b=vvYLo2ZS6x9lqmXGZ3crXonUfDzOdwqqv4izQWxJ9ioCavwEfXsXriMQkgTqg6iv+P gcNbfNbKoCl+YKFccHIlgR0XEBkpTSkQRhW/jL61MPyayyrhXHPS27hLITBKM5CEhmoq wCj/HpceRet1L5KdoXwe6Nvg45hwzofPc5qH5gwDWuyxPNoJEb+ONhV7Vk7EMPXEB2F1 9yuBFtJ9YVHxRUxEsoZFxx+qKEJQuOdICHY0/gygI2CNs9M7L22AabIZwozCCyTSpsfM luzo4DTNj+i6dEnoXkydFi/0NXpZgv7i2uc3HAHhZXBrBizHpgcf5rgIbOdxT9/6MZ9G ZrDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=MyBxSIY7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d28si623334otc.123.2020.02.12.21.52.09; Wed, 12 Feb 2020 21:52:22 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=MyBxSIY7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729670AbgBMFuL (ORCPT + 99 others); Thu, 13 Feb 2020 00:50:11 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:3324 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbgBMFuL (ORCPT ); Thu, 13 Feb 2020 00:50:11 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 12 Feb 2020 21:49:42 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 12 Feb 2020 21:50:10 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 12 Feb 2020 21:50:10 -0800 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 13 Feb 2020 05:50:10 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Thu, 13 Feb 2020 05:50:10 +0000 Received: from blueforge.nvidia.com (Not Verified[10.110.48.28]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Wed, 12 Feb 2020 21:50:10 -0800 From: John Hubbard To: Joe Perches CC: Andy Whitcroft , Jonathan Corbet , Konstantin Ryabitsev , LKML , John Hubbard Subject: [PATCH v2 1/1] checkpatch: support "base-commit:" format Date: Wed, 12 Feb 2020 21:50:04 -0800 Message-ID: <20200213055004.69235-2-jhubbard@nvidia.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200213055004.69235-1-jhubbard@nvidia.com> References: <20200213055004.69235-1-jhubbard@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1581572982; bh=2fzW1cFQcCv8wV+9ogMJBPeSWfZqvFADlLbfZGyZt3Y=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:X-NVConfidentiality: Content-Transfer-Encoding:Content-Type; b=MyBxSIY7te8xFRF51y23sJ1vt2fRt38Auojnd0p+V5cCnVwa+mnGu0y4nZYPfFQAN NDARuJzh3/1H7CIiJ5tjdveXfsVxAxiAGVrv5MGFtmvnQmeolXyzw+tD+jiQY+Rmgj uV1Dyq646lUL1TMTUHV7FCwWMHWZoJaCYAMloO92zZ+P30H5WstN2RFU/fl9WjLLgp 4+wLZqmVHZAsp/bGe6rUHPEZu375etObGnSm6lvXF4UhxjN4V/2SXQ3CIT0H/Uyz29 aYaECHvMKHc3S0D3KS2HVrmPNU4amsTGh/b7uIJ8DonP7KW8rPXelK1vCXz4Y77lvP jXC3Bcf/rc5ng== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to support the get-lore-mbox.py tool described in [1], I ran: git format-patch --base=3D --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 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 { =20 # 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 =3D~ /\bcommit\s+[0-9a-f]{5,}\b/i || ($line =3D~ /(?:\s|^)[0-9a-f]{12,40}(?:[\s"'\(\[]|$)/i && --=20 2.25.0