Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4517106ybg; Mon, 21 Oct 2019 10:10:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcOCn3WAG32hC8E5nZkhAfXleDwnsrxG1+dOYPVemouw9QPHoTRs58vhBHtZBq8S6g7ZbR X-Received: by 2002:aa7:c24d:: with SMTP id y13mr26238969edo.186.1571677823496; Mon, 21 Oct 2019 10:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571677823; cv=none; d=google.com; s=arc-20160816; b=UoSWuxS0YMqsRJhEFEqpN8UvIh94WevwyqwLR9CPQ8Pz8pcquf0NBEGWh5/nUingy7 VC3sZCzUznJZps1h5AHXKso5pD3/BDW7xdWXi0Gh5422Cv+R9s/thHttaQyAYCO0kf5w p6Hw/Bi+nNOIbpOxFJWU0/iPflTIGHqnlVdCWNkLMmgGdpA/5WFKmk5zlpyy0/Wp2VKj Y0+PyUdlpUQ7ufpF+fd5qa/SpHFYQVrzF6ilqEIOHS0L3olAXGjVfcVWyjnlataDNzAH /W70i/7k4J9YIddIW5r0qPvZmxWKqWurmY/X0psYo4rvxOTvr4TGH0ImVrvMt3o21YNb 5ESg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=Wxgth48wA5oQ8cPlvqbI7UFUAhGTMgHizZwe7uVd1CY=; b=q51eAvCKfw1AQmPlK8wVd8KECPywBY+xy19YCUBcetFs6Va4O4kGLNMT+XQQdIxjT5 XX6mnC8jsMcUgalRXgEC6nzG4wc7n5pEakBb1xceEfgXYQG6gqBjeoCjqtG9Q/inmazj cV93cgJDgAeZQakzX/qBZOxopIHzTsKgvv/JFgQW81dW/+X2ZnoLq9ucFhG4qnOMlSaB BGQ3rWeQmB8h94NBlKH2uBoqDTEF/nnrrfjkUvJb5RAiK/mNjtz0bgtj8j1OpwQfbXOZ sZnnczes3pkZFkaOUXSRBAUPH8RRHam92GNZV9bM1ISxTdABznbFGt05BFPU1yjhMXyi rYhQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si5029991eja.167.2019.10.21.10.09.59; Mon, 21 Oct 2019 10:10:23 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728448AbfJURJA (ORCPT + 99 others); Mon, 21 Oct 2019 13:09:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59732 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726819AbfJURJA (ORCPT ); Mon, 21 Oct 2019 13:09:00 -0400 Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8001C3D95A for ; Mon, 21 Oct 2019 17:08:59 +0000 (UTC) Received: by mail-lj1-f199.google.com with SMTP id w26so2562700ljh.9 for ; Mon, 21 Oct 2019 10:08:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Wxgth48wA5oQ8cPlvqbI7UFUAhGTMgHizZwe7uVd1CY=; b=KQxB/eI5UCD3CD5jNqOkO2JrgZv3YMa6GKxuQ0kDS3+E4wjUwS/3cEiizw5oqKIp2j 92rOK/YfY57sdxvngMb24yYXmp1fwjEaUh11EIVCmGdvCgri+xdX1e5yVWxpyOKcr43c heyZI2xdSgWLNjTUEzUB6atHtLky68R5UDhNMo3mBiZjmxTE1NaWxblqWcCrrnsoNsbk VSU3qp0lwh791iFmuuq3wN5FwkOd1Qwu0SZKQl6wNlCQCQrtGNBkmIBWJ0RAkdV6PlW4 Kvzk/yHEC+t1y9GeoM69vRkoC+IuJuRlNjOMk4+6KiBcYmwZN1nJvU2NjaV7dPrboARo afbw== X-Gm-Message-State: APjAAAUuCSLZoF8Dp5trUrQts+/y3hIZ1X37SDHJvxHkWfWo5pRGwMb+ wPuIoxUh2P2okGWTjrPE0MQ8/fJWzrc+zv/Bf+SYw6fcxm75g5Y/mLbI21ieGDE6IouZvvL9TLZ 5KF+u2feHy+wJQK1Vz1zHGaC3tM241fvNqHzo7p+K X-Received: by 2002:a05:6512:61:: with SMTP id i1mr3254520lfo.97.1571677738066; Mon, 21 Oct 2019 10:08:58 -0700 (PDT) X-Received: by 2002:a05:6512:61:: with SMTP id i1mr3254497lfo.97.1571677737798; Mon, 21 Oct 2019 10:08:57 -0700 (PDT) MIME-Version: 1.0 References: <20191021184128.601ff09d@canb.auug.org.au> <20191021151507.GD25164@mellanox.com> <20191021170111.GB6285@mellanox.com> In-Reply-To: <20191021170111.GB6285@mellanox.com> From: Matteo Croce Date: Mon, 21 Oct 2019 19:08:21 +0200 Message-ID: Subject: Re: linux-next: Fixes tag needs some work in the rdma-fixes tree To: Jason Gunthorpe Cc: Joe Perches , Doug Ledford , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , Potnuri Bharat Teja Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). -- Matteo Croce per aspera ad upstream