Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4341880ybi; Tue, 30 Jul 2019 00:16:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyflwCLzVTyoZkPxBWHUEKaNMGkMsFpdzhfqS6OYA/NkeLBUw28Xfw5k+16B9/GG0Tc7oof X-Received: by 2002:a63:c0d:: with SMTP id b13mr107283824pgl.420.1564470978127; Tue, 30 Jul 2019 00:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564470978; cv=none; d=google.com; s=arc-20160816; b=Gmh2uBPfoyH2/9GrUyUorWV/fnuQrSeDACAs3vCwI4ODD7t3n7QZ49YFDCTJCSX6hH vYEaLw0nWMQDdCj2mefAluV53dT6gLh61lSM/XlcMVHsIBdW2HtrGVuetVkenG/qeukm +c0SO8HsM4vdaDxSetKrfiYrsATbV8MnM9rzW7wKjzfpPHp1wBzggFXo1kcOQt2drluD AJPnE+9JOUNZYt5R/KVOQuKOFoLcX1lYhs3/GYr4t48Rrmp8OWTT1yHca4Sx3aOQnBlS Ndwwm4APhdU8cnuNY0y7S55c4KgCukR35rs+GZOwFLGa9dHP0YN9OPl777HZIgHWExkK L7og== 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=4uhSuXtsJxEPWIma4eracBI9ZaEU9XbH/JW6QFfPO/0=; b=AUSsmS4c2xN2jCrpg8FtW/0y633EcrkiaXbX3CdsSZnkHtmYNIEvL0Aq1o/FOPwIvC R/Tbewr85nK9qI7tDWeX4p57JEmEpo2SXXegFaONi9YJowI38mqKv7IhHyWnXoENCJDo LlHJ8T8fyisJ4nlBBjPKIO8Zn5dQFrmkXK11e5qWbGfhtmLkNgs4lrGXjwZsJuT1sGcv GVUGFwBABAmd/e74zmMD8CQgj/S9XqnVr+UYf833WxWgZ40YhMbl+Yih7Iuuk4e8wKHu dEuFHJ1UKAzw34SfiH/ZbvOL0JRDCnQcGHmeLBl8WLyxUmHnJy1HOb1tnQuXgByz7flC Q0Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=LqMSti86; 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 b20si28312938pgk.437.2019.07.30.00.16.03; Tue, 30 Jul 2019 00:16:18 -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=@nvidia.com header.s=n1 header.b=LqMSti86; 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 S1729911AbfG2UPD (ORCPT + 99 others); Mon, 29 Jul 2019 16:15:03 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:7438 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727559AbfG2UPB (ORCPT ); Mon, 29 Jul 2019 16:15:01 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 29 Jul 2019 13:14:51 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 29 Jul 2019 13:14:59 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 29 Jul 2019 13:14:59 -0700 Received: from [10.110.48.28] (172.20.13.39) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 29 Jul 2019 20:14:59 +0000 Subject: Re: [PATCH] rdma: siw: remove unused variable To: Doug Ledford , Jason Gunthorpe CC: Anders Roxell , , , , Andrew Morton References: <20190726092540.22467-1-anders.roxell@linaro.org> <08d1942fa99465329348a1bbfd55823b590921c2.camel@redhat.com> <20190729190326.GG17990@ziepe.ca> From: John Hubbard X-Nvconfidentiality: public Message-ID: Date: Mon, 29 Jul 2019 13:14:59 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1564431291; bh=4uhSuXtsJxEPWIma4eracBI9ZaEU9XbH/JW6QFfPO/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=LqMSti86GIJ+cd/+7fUdQAPgfcFNX6ObqSp7MXDkUEgTSoUOs51kK8bKZ6Rr2p/mn +ZDODHoQpGGv6VvrIa4rXlneqMSKydDQGoS8IDqgHrqD/HoGAr1u8VQO825dMy84D6 mKPswW11L7ZzIMCzvu/MwdTfSaqOOOGHwRmUct+oX0/tHUMvLygv9NJf1IXmgesofw RqFY3WT0BYoqXvs2V0liyJjNPVJ+TrpqmtaYnPvxjitFPBQnlb7iAmkD5NqYAIM0eH klCpNhdVcFo7TF29hPTCqSqV3BTJGeXqOSG2K4afrl5hJrPNWV4wHBx6bA0OKAhfNb NUVd2Pl6b4mOw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/29/19 12:45 PM, Doug Ledford wrote: > On Mon, 2019-07-29 at 16:03 -0300, Jason Gunthorpe wrote: >> On Mon, Jul 29, 2019 at 02:19:35PM -0400, Doug Ledford wrote: >>> On Fri, 2019-07-26 at 11:25 +0200, Anders Roxell wrote: >>>> The variable 'p' si no longer used and the compiler rightly >>>> complains >>>> that it should be removed. >>>> >>>> ../drivers/infiniband/sw/siw/siw_mem.c: In function >>>> =E2=80=98siw_free_plist=E2=80=99: >>>> ../drivers/infiniband/sw/siw/siw_mem.c:66:16: warning: unused >>>> variable >>>> =E2=80=98p=E2=80=99 [-Wunused-variable] >>>> struct page **p =3D chunk->plist; >>>> ^ >>>> >>>> Rework to remove unused variable. >>>> >>>> Fixes: 8288d030447f ("mm/gup: add make_dirty arg to >>>> put_user_pages_dirty_lock()") >>> >>> This commit hash and the commit subject does not exist in Linus' >>> tree as >>> of today. What tree is this being merged through, and is it slated >>> to >>> merge soon or is this a for-next item? >> >> This is though -mm, maybe John knows what is what >=20 > Hmmm...if it's through -mm, doesn't that mean that we can't rely on the > hash because the next time Andrew's tree rebases (using quilt or > whatever it is he does) that the hash will change? It doesn't really > matter too much...we can't take the fix anyway, it should probably be > squashed into the patch that it's fixing, and if you follow Bernard's > advice, you fix the problem by eliminating this function and changing > the sole call site to just call put_user_pages_dirty_lock() directly. >=20 Hi, Although I don't know which tree has 8288d030447f, I did get a report from linux-next last night with that report about the warning, and so I believe that the patch flowed from Andrew's -mm tree (which has=20 speculatively added my patches), to linux-next (+CC Andrew) I also sent out a fix for it, as a reply-to the warning report: https://lore.kernel.org/r/20190729074306.10368-1-jhubbard@nvidia.com Pasting in my response (minus the trivial fix), to save you a click: "This fixes the warning. Ideally this should be merged with the commit that it fixes, if that's still possible. "Andrew, would you also like a fixed version of this patch posted as a new version of the 3-patch set that it came with?" thanks, --=20 John Hubbard NVIDIA