Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4519499ybg; Mon, 21 Oct 2019 10:12:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqdy2NCmEiwbOM3HVnNy7BizL8Kwtnxs7w8PCTMzIOaugoO0GVf9XXZs56rTXzDH6DJFe1 X-Received: by 2002:aa7:cd68:: with SMTP id ca8mr3485516edb.58.1571677950912; Mon, 21 Oct 2019 10:12:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571677950; cv=pass; d=google.com; s=arc-20160816; b=tysOUuxEwWPtnPpppKgMzZsQn8HHmRUkdbMduHAFDjxrh55ix66YX6j9qZ3MAt1Obs nlydAk1ViSZmaoE0qMfSRPoBTUCBIqPR6U4ubXnMKscRsMAydZs+MQf9J9C4xa9iCVMz MVnF2NsSwGVwz7hhUUcL/lF8bN4j/YI2zLKhfmDxW90e2ArplQ9alFfHB0mZizBAMVmp Ta9pI0sSRfAaByInrEvUtYMKhj5nNS6Rk/pOxMVruLPbepitBjP4CvnkBGpVrfevJFY6 Gmb9VQIIfIeINpqQdHJIlVScVfZxivZaj/NXylLIF14wHWhNpPNA1J64i0KPrWiG03eA +yvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=jua2pWSridFLmY5LsWiqlgsoFLCKhounfsWmoKEdaBM=; b=dwrBguaRgybgbiG4tiM1gMP1IUWxq3ZMIFcsumnoW/LzH9+BiO2sfuPsK/AzTdm1i3 mSCUVNjXB48hkM+12Z70DZpqmYr1jO43/Pvz2neXlc9fYLa0DegJ4qTBT6p4MiBDI8zk UBYmm6YejfgbGRhSgGj5HN+oYhXHL5wNJGl74dfdDW2zq3rCi262OAdUfAZ9LkyvNmwK SmaI+E6PkYl6sKNsonG66Ec2joRRyG0cnuQabcA3l7iddqSB574zP24I10i5C8QIlplO jHazJ+SncNubuBnYp/FQpn7kQTSgxvR5RcdDJ2oU7JgNDGAFWmSsxcZ9em3xjVxfElTz tyIA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector2 header.b=aEZIOfjw; arc=pass (i=1 spf=pass spfdomain=mellanox.com dkim=pass dkdomain=mellanox.com dmarc=pass fromdomain=mellanox.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=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 35si952876edl.409.2019.10.21.10.12.07; Mon, 21 Oct 2019 10:12:30 -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; dkim=pass header.i=@Mellanox.com header.s=selector2 header.b=aEZIOfjw; arc=pass (i=1 spf=pass spfdomain=mellanox.com dkim=pass dkdomain=mellanox.com dmarc=pass fromdomain=mellanox.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=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728353AbfJURMD (ORCPT + 99 others); Mon, 21 Oct 2019 13:12:03 -0400 Received: from mail-eopbgr70058.outbound.protection.outlook.com ([40.107.7.58]:36076 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726819AbfJURMC (ORCPT ); Mon, 21 Oct 2019 13:12:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bws9jc+6vTXzBFcpwvx1l0aPDPyvuS4SDx5ahBl+cWmev0rz3oIbb7Q5FsGTn77X4g66rg1tO6mRPcPmO1EAADQsbeIkZAU+URwN8cS3+b5iJk2LLKDdbGFYF2ruqSgsq5g+V6We3doZCOvcYl3ai5zbsvaACrq+73Ur3AbSHUO6j3f5Vs8VYkFD1Tt1DnBvyQUphULc8MwPMUilVhlmLY1yv5sqopCUuA9RzfpcCE0oA5FD9wqsR+E7QTnMNpDW1syrnjkb6iX1MxXVCzfEnr1UuArgw20aiN0qocajTq8XO0TpuC5Q/MyQkQlQEZFg7VsUhev2V+QSMj+U6rP0rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jua2pWSridFLmY5LsWiqlgsoFLCKhounfsWmoKEdaBM=; b=OE4zI3de84ZUuM8Q5HnwTc+EkUSTkRgW07ANxzRZnkHMr9Sjjfp0CqsbzbwVUk6TQToD3TM6ogJ26GUx99Je9baz7VDkZI0xZm1Sgg0WM8i3c6TEr2w3lyS+EVYmYHvYqNS1N7R7eiCu4nIRqoRv9O6FI32TiqwrZcFzJwkoRss43472BqdG1WnFKYu1nt+Vw6JlYjZv5gP4H35xxaQtydVmA/ux+ibqvYmrS3385Vg7bqb645OcNipPGlzmaJbS8lV4f06TH7oGhg9sIvpmi+UyG/xsLzJz3WtA6W7hweyGCDhYAG/xNhJEX3uUZdpuLxxz9F4orn65hH/TgOOjSA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jua2pWSridFLmY5LsWiqlgsoFLCKhounfsWmoKEdaBM=; b=aEZIOfjwHO8joNHP34QEu3p4tYylYFDGLzM06TJsj+F6vOqUtwppd+qcTvAYbTwQBv4Fu+YDe6BJPwSMfHKoB/WDIDDxZBPbQZBaS7TOvzAAcByQdnNOBEUIm6bahaBS2xULss7AAekdF6ehl+B+sJqFKX5wWa+QpbV1UeIGOT4= Received: from VI1PR05MB4141.eurprd05.prod.outlook.com (52.133.14.15) by VI1PR05MB5534.eurprd05.prod.outlook.com (20.177.201.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.21; Mon, 21 Oct 2019 17:11:58 +0000 Received: from VI1PR05MB4141.eurprd05.prod.outlook.com ([fe80::75ae:b00b:69d8:3db0]) by VI1PR05MB4141.eurprd05.prod.outlook.com ([fe80::75ae:b00b:69d8:3db0%7]) with mapi id 15.20.2347.029; Mon, 21 Oct 2019 17:11:58 +0000 From: Jason Gunthorpe To: Matteo Croce CC: Joe Perches , Doug Ledford , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , Potnuri Bharat Teja Subject: Re: linux-next: Fixes tag needs some work in the rdma-fixes tree Thread-Topic: linux-next: Fixes tag needs some work in the rdma-fixes tree Thread-Index: AQHVh+L3TKVLX91rm0q8yD/5yy/ydKdlLgGAgAAG3YCAAAa0AIAAFu+AgAACAICAAAD9gA== Date: Mon, 21 Oct 2019 17:11:58 +0000 Message-ID: <20191021171153.GC6285@mellanox.com> References: <20191021184128.601ff09d@canb.auug.org.au> <20191021151507.GD25164@mellanox.com> <20191021170111.GB6285@mellanox.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MN2PR20CA0011.namprd20.prod.outlook.com (2603:10b6:208:e8::24) To VI1PR05MB4141.eurprd05.prod.outlook.com (2603:10a6:803:44::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=jgg@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [142.162.113.180] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 54f7fe47-5b47-41b1-1b88-08d75649c7da x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: VI1PR05MB5534: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0197AFBD92 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(396003)(39860400002)(346002)(136003)(376002)(189003)(199004)(8936002)(2906002)(66946007)(81156014)(71190400001)(64756008)(66556008)(66476007)(66446008)(71200400001)(7736002)(305945005)(81166006)(6916009)(8676002)(1076003)(66066001)(25786009)(5660300002)(54906003)(86362001)(256004)(6512007)(186003)(2616005)(446003)(4326008)(6246003)(36756003)(52116002)(3846002)(102836004)(6116002)(26005)(478600001)(99286004)(316002)(53546011)(6506007)(386003)(76176011)(6486002)(229853002)(33656002)(14454004)(6436002)(476003)(11346002)(486006);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR05MB5534;H:VI1PR05MB4141.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: A+Bo1dVk52iQjzfQCByxL/YzYJlfIVLh8Kuu65ZrxsxfZvrNNymq9LCvINOfc68L7bSTZ/z23Mdu85nQruKsrtrr7FsHi+STBOtbRYRJ5GrFvDhGZGNKxgPJFG9aDx5zJioMVm3t/Wq/cInTDHhksQ//uXoS3z2qaueG+LyrAV/7tOJDfH9Cf9FWLmWoT0QxBUpuyZ0CGROmWT4Bvyzj7UGfsK8KTFMog9hTu/IXpfvpabixFoFHKGhzj4fcATmV7dpBDDiSl4ipI+PU9mPfq83bvAwOxDWcCmS+U+RKnnZ44BNwekaxFTT18UsZ51T3EA4TOMMmAdP/d7MuZ+ZfmxBNNstg7xNc4+UBUTGU/QVfLze4PdZdu1IcoD5aTKfv5b5/VUVvJsUc5sfHLXl4Gk5oKEyJheMdAdWkF5sFk7M= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <0E10C059A5456342B8C356B8E079A85A@eurprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 54f7fe47-5b47-41b1-1b88-08d75649c7da X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Oct 2019 17:11:58.4264 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: orgrdnIVtySDxp+s+F9eR39la4U2R1w5mWducEzeUJVzEBM4Xuyn8kcl0ugQlYDkl3SMeL96313BbiRB6/PnkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB5534 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 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 an= d > > > > requires it to be the same as the patch provided. This catches all > > > > sorts of wrong fixes lines, and sometimes git even recommends 13 ch= ars > > > > :\ > > > > > > > > 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=3D12 -1 --format=3D'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.. > > >=20 > 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? Jason=20