Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp856411ybz; Fri, 1 May 2020 09:46:09 -0700 (PDT) X-Google-Smtp-Source: APiQypICnZXhXHYZCdFXf1qi9IJdAXjCBs3nQ18Rc4IDx3XlUMklp8O8E+bjNTswd8pmdGpwpUMp X-Received: by 2002:a05:6402:95e:: with SMTP id h30mr4268082edz.117.1588351569272; Fri, 01 May 2020 09:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588351569; cv=none; d=google.com; s=arc-20160816; b=TsHq2QID4azK4SCmJSaE0ENcgdOUrZO6EHPfsS/tMzbm0Bm4CWcagUnM9LtHCXfuEw oBphOTvOMkq5RST+seneOZgs3LpVuz/FSuV1FPAeJto3P3mku/IVqqRuFFwVjBKNviZ7 Znzngb59pglQYl8c/G7xbUHQzq8sveldBqW2BFpj29SMr3pkys7ddDcj4X1i7VUzxjcF XoGyuWB1EtT2JlEJGYu2mmPOquflK9MfVtL4XYssFRcuCEroaqM29AMXq/Q6c3TSc5Cj Kdb4izHr6uzEeMCNxhugdjIL1CfRiHCpxAtSFwDFkTcAyiNAVPodue8dwc/ZU24k7kTm xvHw== 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=dDXKJPQ/gE6WNhT1u7FB8OFPEHFkxzDvZV5gfrC3RrU=; b=0AOK0ZxkOAOjlUGqh+Q/8cHOzImN7S87csuNcZB1NSuUCpYNMldAfA8btMlUP12hCb qg692LJwFZ1fsMldQVE2xhMGxbnOELBTFOEGHsCmq9uhKUI8kHyi8vBbiKVUZV0Plvts 9CDd0w9at4rZVl/wbcIu5EI29NCfuEzM4dn0NBqRy4VYooC9vmJ4rWPnwGaXPIPiUzLT JFuPeMkDG1Hl/+vuDDUO7kuGXDjFYtX2Ur1JTqlwLmyCnmD77LSaUuPdfK4wojDoI84J gcGnjypp2bjKB5NyV4omH5Ie0oIs/ctWoDFxbon9SCUdFZA43zUVocMCsBjX6QTXzWUy 2igA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x17si2443722edi.378.2020.05.01.09.45.45; Fri, 01 May 2020 09:46:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729289AbgEAQoJ (ORCPT + 99 others); Fri, 1 May 2020 12:44:09 -0400 Received: from smtprelay0035.hostedemail.com ([216.40.44.35]:34728 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728946AbgEAQoJ (ORCPT ); Fri, 1 May 2020 12:44:09 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 7A119582B; Fri, 1 May 2020 16:44:08 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:152:355:379:599:966:973:981:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2196:2198:2199:2200:2393:2553:2559:2562:2731:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:4250:4321:4385:5007:6691:7903:7993:8957:10004:10400:10848:11026:11232:11473:11658:11914:12295:12297:12555:12663:12740:12895:13069:13071:13095:13311:13357:13870:13894:14096:14097:14180:14181:14659:14721:21060:21080:21433:21451:21611:21627:21990:30012:30034:30054:30070:30090: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:1,LUA_SUMMARY:none X-HE-Tag: crown64_41171caf07714 X-Filterd-Recvd-Size: 2755 Received: from XPS-9350.home (unknown [47.151.136.130]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Fri, 1 May 2020 16:44:07 +0000 (UTC) Message-ID: <4aeb5a976996efb08572f006bb82dc60f97ce73d.camel@perches.com> Subject: Re: [PATCH v3] checkpatch: add support to check 'Fixes:' tag format From: Joe Perches To: Wang YanQing Cc: Andy Whitcroft , linux-kernel@vger.kernel.org, Alexei Starovoitov , Matteo Croce , Markus.Elfring@web.de, kernel-janitors@vger.kernel.org Date: Fri, 01 May 2020 09:44:06 -0700 In-Reply-To: <20200501163440.GA19874@udknight> References: <20200501154033.GA25730@udknight> <3aeb6ab5059ec753d922051d7732e13322188e7c.camel@perches.com> <20200501163440.GA19874@udknight> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2020-05-02 at 00:34 +0800, Wang YanQing wrote: > On Fri, May 01, 2020 at 08:57:42AM -0700, Joe Perches wrote: > > On Fri, 2020-05-01 at 23:40 +0800, Wang YanQing wrote: > > > According to submitting-patches.rst, 'Fixes:' tag has a little > > > stricter condition about the one line summary than normal git > > > commit description: > > > “... > > > Do not split the tag across multiple lines, tags are exempt from > > > the "wrap at 75 columns" rule in order to simplify parsing scripts > > > ...” > > > > > > And there is no sanity check for 'Fixes:' tag format in checkpatch > > > the same as GIT_COMMIT_ID for git commit description, so let's expand > > > the GIT_COMMIT_ID to add 'Fixes:' tag format check support. > > > > > > The check supports below formats: > > > Fixes: 54a4f0239f2e ("KVM: MMU: make kvm_mmu_zap_page() return the number of pages it actually freed") > > > Fixes: 85f7cd3a2aad ("Revert "media: Kconfig: better support hybrid TV devices"") > > > Fixes: 878520ac45f9 ("ext4: save the error code which triggered...") > > > Fixes: 878520ac45f9 ("ext4: save the error code which triggered") > > > Fixes: 277f27e2f277 ("SUNRPC/cache: Allow garbage collection ... ") > > > > Hi again YanQing. > > > > I think all the non-standard and incomplete forms > > should have a warning emitted. > > Hi Joe Perches Hi, again. It's just Joe to my friends... > I am not sure whether I get your words, you mean we need to emit warning > for incomplete title line format? For example: > Fixes: 277f27e2f277 ("SUNRPC/cache: Allow garbage collection ... ") I think so yes. It _might_ be useful to show "why" the message is being emitted. (sha1 too short, no quotes around description, etc...)