Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6590583ybv; Wed, 12 Feb 2020 15:33:29 -0800 (PST) X-Google-Smtp-Source: APXvYqxj/0yllTTPysIMurXg9tc69O/mPbdLZdgflspN7p4V67hSzxcuJW+QnzI0QeNlVM31nPEq X-Received: by 2002:a9d:545:: with SMTP id 63mr11657046otw.285.1581550409675; Wed, 12 Feb 2020 15:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581550409; cv=none; d=google.com; s=arc-20160816; b=TG2Vx0xAFfor1XZAiXzx8yarGa6dhfMRf0E3qSRMCpRr4XWfmOWvhBJ+ibrH5gSbDA 4DHWwgTex29OlC1Nm4AjqTuvFchP4CNzd73ZR+iUBK9dAsLjSeB61XxG9U8xv7uZmYF2 +7oXbWbbeE5r+MlQtDFY6y2AeHWaNosHEkHet6KI8PRKGSeUCuu5DWFPcEOO6655cKsX 8VKkwmLW82xyjsM5LyWeAY0vcAH2ZuEFawokbAv7kTLykjXjyTGS3pDhp5Yp/cgdKlCq YKWqOXCNV0AXAV+5OKN2VKUr2aNjxrB/Wu6X1bcXsUwZScd3zhbG1UpT1vmPal1e6NVQ 5SeA== 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=FRuYVUnC7K1U/LqgpvS/vWTnisUzXBRoaqzkfsIXevs=; b=FCpuS/R4cKYrSJvPVvbj1ibVYcOqZGpIswTzxzesZmEcR5zkR4JiJhaawI8a/xrYwT Etm4pmIDLExT/I77Ah4MQTIC+AUOhsmuWHX/zxaB1A6u27h2AYq/pGg0w4EWinwyYoCK S9cTm7yi/MFFO78RzpAC4/A/AFCtOsNPHXRTopSJnfyjaPnTepjo3pK/S0ACCNdOrf8H BC436JwtajoRjC50DKHTy0el6CpLtjjlN/woBIC/Q9R1+nO1QrqgSAk5yvKaLLKUDI7B DPpEnp6dZrSUzdlOPt4Z5KgqcF/QRT4S43FQpMGYuq80cBlthg3STtPjrt9XEdb/hpkb jBeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=B7ll61A6; 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 z4si323019oix.48.2020.02.12.15.33.17; Wed, 12 Feb 2020 15:33:29 -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=B7ll61A6; 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 S1729362AbgBLXcY (ORCPT + 99 others); Wed, 12 Feb 2020 18:32:24 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:12761 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727117AbgBLXcX (ORCPT ); Wed, 12 Feb 2020 18:32:23 -0500 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 12 Feb 2020 15:32:09 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Wed, 12 Feb 2020 15:32:23 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Wed, 12 Feb 2020 15:32:23 -0800 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 12 Feb 2020 23:32:22 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 12 Feb 2020 23:32:22 +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 15:32:22 -0800 From: John Hubbard To: Joe Perches CC: Andy Whitcroft , Jonathan Corbet , Konstantin Ryabitsev , LKML , John Hubbard Subject: [PATCH 1/1] checkpatch: support "base-commit:" format Date: Wed, 12 Feb 2020 15:32:21 -0800 Message-ID: <20200212233221.47662-2-jhubbard@nvidia.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200212233221.47662-1-jhubbard@nvidia.com> References: <20200212233221.47662-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=1581550329; bh=FRuYVUnC7K1U/LqgpvS/vWTnisUzXBRoaqzkfsIXevs=; 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=B7ll61A6N7ZeDDyVelqd7SYXmE7rdK5rt85E6B/QZV4mIs/aLMMh8fC3jWcFDosdm esZUppfRjYe2e9fPbr97uk328nmpBxOWfxNWY07j9/izK4EYMOLyLI8rKTtd0WAuo/ 4q8v5lNPsaniSIi3h+okjmrPGU9k+xWmGJ4z6sm7idTfL8EOC00CNamjkFhQAqiBt6 7xaWIImPGgF3xTg+jm5RHsvrgvYUysiJa4Tl91qLt5ht0y6ZhTUaxF+yKNL2cB1Au+ XiSdVVYgi+sfv0IDFwVwaImPh1E1faoYZa154OU4dQrnZefTpgvRu8TlZufLXwoDXB UzaWTFbwRGURQ== 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:", 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 { =20 # Check for git id commit length and improperly formed commit descriptions if ($in_commit_log && !$commit_log_possible_stack_dump && + $line !~ /base-commit:/ && $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink):/i && $line !~ /^This reverts commit [0-9a-f]{7,40}/ && ($line =3D~ /\bcommit\s+[0-9a-f]{5,}\b/i || --=20 2.25.0