Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp115615ybv; Wed, 12 Feb 2020 20:28:56 -0800 (PST) X-Google-Smtp-Source: APXvYqySVKz39aBtLOgTo7I3o0zYnuGThWE17DaxzLWCvnL68cD2qUABt0wYvtc/lauFM6/JrXd6 X-Received: by 2002:a9d:2c2:: with SMTP id 60mr12010543otl.208.1581568136300; Wed, 12 Feb 2020 20:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581568136; cv=none; d=google.com; s=arc-20160816; b=iUZciBq1ofh/OoTtjHhxOXS13annumlrPZGbMUmqUvZZ3zh+cK2XtJBYzpyvCPoOG2 Jy9MvPPXpdOtAunRT1YG5LhI5lx6P7SvqjCtporTgfUiNSHpHkVgmmJGl0Y0M/GoTd1L O/ywJ00faqrqwOgKDLjUaj9ju+9321KUltTCdF8Y0es9Du3JaodClkZxil66zj6YNWKO N3yBPDnowoVtmFOyG+dLlhd/9jvQpMBl+aonfauc/Di+sMkdlBL3OPx4cRHZShaCIqJv x6HICf71uxPEGTaJTwBA44+BdK4AUaw0ygWzjtaZ4Ty/MzWuFkMSkaYrNIJQu2hhubP6 l/+A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=CH0W1IgPYwgWyTV2KHOAEhDBrtMU65kM4pCC54fWw+0=; b=jy46kQFAKfRJ+RkYAQJPjc/Q7B/Xgg6goGsVeYwifrVi+Nztn0uA1rBfet6+WK58bu d66RHyjvoh65qDIeEcnR5jx6brjdnk9dSW9c9xrXRMyr9p3Alr8nhVZ5oL+Htw/2x9L4 prMZlIIMsFo/DdgdSGHHOVQZDDKzMgLuRVXSjuo2/0FtziXSK3cigA/Yy1S5+LOEgWFW bO8jzO/yuyh3hmvgkyqWxmU5Mt3M0frGlSDiMNPbidTqR3ZdgviqWETb6GjqmLYTiWxV rRwVrJtIq+HbIMcnaxp9QPVB48zLyqaCdCfuhE/MdCA07HnHIokbVDcB0baBekq9rKiD Oj5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=sFkA2Qy9; 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 l17si514368otk.218.2020.02.12.20.28.43; Wed, 12 Feb 2020 20:28:56 -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=sFkA2Qy9; 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 S1729633AbgBMEZM (ORCPT + 99 others); Wed, 12 Feb 2020 23:25:12 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:18996 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729358AbgBMEZM (ORCPT ); Wed, 12 Feb 2020 23:25:12 -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 20:24:43 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 12 Feb 2020 20:25:11 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 12 Feb 2020 20:25:11 -0800 Received: from [10.2.168.250] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 13 Feb 2020 04:25:11 +0000 Subject: Re: [PATCH 1/1] checkpatch: support "base-commit:" format To: Joe Perches CC: Andy Whitcroft , Jonathan Corbet , Konstantin Ryabitsev , LKML References: <20200212233221.47662-1-jhubbard@nvidia.com> <20200212233221.47662-2-jhubbard@nvidia.com> <2dab786b686735ec0c4ee614c64448d78c67a51d.camel@perches.com> From: John Hubbard X-Nvconfidentiality: public Message-ID: <5b8d6faf-4eec-ae8a-42e4-0b16713ed288@nvidia.com> Date: Wed, 12 Feb 2020 20:22:14 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <2dab786b686735ec0c4ee614c64448d78c67a51d.camel@perches.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1581567883; bh=CH0W1IgPYwgWyTV2KHOAEhDBrtMU65kM4pCC54fWw+0=; h=X-PGP-Universal:Subject:To:CC:References:From:X-Nvconfidentiality: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=sFkA2Qy936atZnIJPkXIUXcq1h54enMuxBxrb+d/HnleDChtcUZ5u7zT3oW7wD76Q T02wSRzNM0/9fSD1KiIm0CVhyDHip9rgMKoYKf0ii758rUiZbsorlxux0hf4zBikFD gEjjQjt07XWWBkuh5lLdExIU2WeK9tmzPpoYs7GRS+FzJ2slPd5PzkQ3SYGZTTywaJ ieZHQOzjQ/hkv2T8lLCWSidVsw7Og7jRszYIJ6Vibo1JzvSk2OaivDak8iu1GKnO4i jb/T1zAAXk86TwAb79Dtjv9l64RQTgdVNa3dY7b8ZaEAJs6lIpbNHVqh2FCWK0GvYz ngPuJJW/Zhn0Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/12/20 5:32 PM, Joe Perches wrote: > On Wed, 2020-02-12 at 17:06 -0800, Joe Perches wrote: >> 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. > [] >>> diff --git 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, As far as I can tell, we should be able to rely on that, yes. >> I presume this should actually be >> >> $line !~ /^base-commit:/ && >> or maybe >> $line !~ /^\s*base-commit:/ && >> >>> $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink):/i && > > and probably better to just add it to this line instead like > > $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink|base-commit):/i && > Yes, that looks nice. I'll send a v2 doing it that way. thanks, -- John Hubbard NVIDIA