Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4536301ybg; Mon, 21 Oct 2019 10:26:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYNe94EEP6Zr2JFY1E2YjX5VUubzS2281kJJ+WtlHO7DLciZvcfPdW7n6AOkCsg+zw952B X-Received: by 2002:a05:6402:1612:: with SMTP id f18mr26413641edv.66.1571678812267; Mon, 21 Oct 2019 10:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571678812; cv=none; d=google.com; s=arc-20160816; b=XTIb6JcRrhMWzd6hLPnAcxKfQkNS8+3BIa8AR/Wi1XJkDpIC2oGysnyAsh0A6FR/RR M1Fdp/THtkGWo/Jw164K9msbj03hFNOF3NlEuJQR0KNiAStBN4HS7JkfiWIlDEKWFpcI tVtGTLucdTEV6Vjnl3Bi4Y8WDbSqrj/KqgapzMdS+GdIb3cunnGGh2eF4RbeDLvT4Upn TFLgFCP5KeL2DTxPYG4bJmEP7tOqa1oEKI+kmQdTu22Ctk7rw90mm0xXymKngwGJ+YmO KVUsYSv1d+A3Rx23pyYl9VDRnxHi3Z5omqc5EOLF4CYupdfSL52h3rHi57MeFiioFMF6 3KnQ== 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=KX9gDkXksl/iMle0kSrkxmLivn3l7UPhhaqcXQ6tXls=; b=gg3rOV2KkdlN9GQjbzF6SPLbJG7EideI7XY6XLqKfXX6o5mgivb2Lv0fBYL53GVvGO bfqWdvL+ftfyGcPADGHq7jnZWghaIp+W5qlgSnxGJ6u85wFlZKRUAzLuoWhf4w7Q/LLM B8mQnZtajOBGlhZDO19OFiHT1XZAGbCRF2zl+onWwYGYh87WqLmwxary67V5K0fRjCFH MxgB5vxm8/ixCByr8fHDALhXyxZz+zyCCDyC4VrCPBEE1YxNjFYawpnA4rqo7WsYtPiM xYRnJGn0abQYPGsIXjXMFpulf5hKI9IpbvYQEN54yE0JeseRT4lBHGlg9aTjte/go5KD mfjQ== 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 92si1408768edh.321.2019.10.21.10.26.28; Mon, 21 Oct 2019 10:26:52 -0700 (PDT) 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 S1729912AbfJUR0Q (ORCPT + 99 others); Mon, 21 Oct 2019 13:26:16 -0400 Received: from smtprelay0230.hostedemail.com ([216.40.44.230]:54358 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726672AbfJUR0P (ORCPT ); Mon, 21 Oct 2019 13:26:15 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 10A7C180295BC; Mon, 21 Oct 2019 17:26:14 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3355:3622:3653:3865:3866:3867:3868:3870:3871:3872:3873:3874:4184:4321:5007:7522:8660:8700:8829:9707:10004:10400:10848:11026:11232:11658:11914:12043:12109:12219:12297:12438:12555:12740:12760:12895:12986:13148:13230:13439:14180:14181:14659:14721:21060:21080:21365:21451:21627:21740,0,RBL:172.58.75.195:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: name63_705721fd69555 X-Filterd-Recvd-Size: 3384 Received: from XPS-9350 (unknown [172.58.75.195]) (Authenticated sender: joe@perches.com) by omf18.hostedemail.com (Postfix) with ESMTPA; Mon, 21 Oct 2019 17:26:11 +0000 (UTC) Message-ID: Subject: Re: linux-next: Fixes tag needs some work in the rdma-fixes tree From: Joe Perches To: Jason Gunthorpe , Matteo Croce Cc: Doug Ledford , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , Potnuri Bharat Teja Date: Mon, 21 Oct 2019 10:25:41 -0700 In-Reply-To: <20191021171153.GC6285@mellanox.com> References: <20191021184128.601ff09d@canb.auug.org.au> <20191021151507.GD25164@mellanox.com> <20191021170111.GB6285@mellanox.com> <20191021171153.GC6285@mellanox.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.32.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 Mon, 2019-10-21 at 17:11 +0000, Jason Gunthorpe wrote: > On Mon, Oct 21, 2019 at 07:08:21PM +0200, Matteo Croce wrote: > > On Mon, Oct 21, 2019 at 7:01 PM Jason Gunthorpe wrote: > > > On Mon, Oct 21, 2019 at 05:39:06PM +0200, Matteo Croce wrote: > > > > > I thought I saw that checkpatch was checking this now? > > > > > > > > > > commit a8dd86bf746256fbf68f82bc13356244c5ad8efa > > > > > Author: Matteo Croce > > > > > Date: Wed Sep 25 16:46:38 2019 -0700 > > > > > > > > > > checkpatch.pl: warn on invalid commit id > > > > > > > > > > Maybe that check should also check that enough hash is provided and > > > > > other details like the correct subject line? > > > > > > > > > > I also use a check that builds the fixes line from the commit id and > > > > > requires it to be the same as the patch provided. This catches all > > > > > sorts of wrong fixes lines, and sometimes git even recommends 13 chars > > > > > :\ > > > > > > > > > > Jason > > > > > > > > Hi, > > > > > > > > actually I just call git_commit_info() which checks for validness. > > > > I could also check that the hash is at least 12 digits, would be very easy. > > > > > > IMHO you should do > > > > > > git log --abbrev=12 -1 --format='Fixes: %h (\"%s\")' > > > > > > And check that the provided fixes line matches the above output > > > exactly, or nearly exactly. People do lots of funny things to fixes > > > lines.. > > > > > > > The point in using git_commit_info() instead of calling git directly > > is that the latter would generate an error if the working copy is not > > a git tree (e.g. a tar.xz downloaded from kernel.org). > > Well, it does some checks and calls 'git log' so it seems like it > could learn to call git log with different arguments, right? git commit SHA1's are not just 12 chars and could be any length. And checkpatch already does use specific arguments my $output = `${git_command} log --no-color --format='%H %s' -1 $commit 2>&1`; and then parses that $output.