Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp103468ybg; Mon, 27 Jul 2020 17:01:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwASiPLSmEORDN1vCQ65c5K3K7PiRRo97bPWr9fXTbILnXz9OI9e6xLUmniD4CZuot9K/Ko X-Received: by 2002:a50:bf07:: with SMTP id f7mr15466910edk.356.1595894501517; Mon, 27 Jul 2020 17:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595894501; cv=none; d=google.com; s=arc-20160816; b=wUicqNd4bfS4lEyolMu0GwTZckWq6R0f5+UeXMQbNu9MC1obNQlGjXNaMEOv1Asft/ C/6NcUX+tWR9wuqwKMOKgSknXGeODsM6qJi9Opjqf/sdOQupyD0eGS2TmUPDAS+U1QW/ l5c+jBWuXZGnhXgd7912qYoZD3IbrQLthxs4uqsu6tLrky7ZrKFWVIov5AOvmqMQI3HJ RA4TxXKpWtaYrSwmGUwmX6yGNCo8eXHoRKR5+PsVUQ/FNWZM7YU7U5GWZvS3ICoFQYyB BPeKRTzqOt2j5mfeFrjprEizuAbyR7Lz8tx+HfiHpPVDQtwO+utkNiZIlk2j0P8iIRde 9+vw== 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:dkim-signature; bh=40PEaev2AR89A76wIRPh9VfSUB5wAXw9k1uNgC1xL9I=; b=DPvi8AVG14o7M81pHoc8FJx8BH14lgY+s4Tq2Ki/zH0B3gwkTFSy75Y3kUk1eCbsj0 LdgonHwSHlVrBDV/X+ewncPkD7dRHdPTVYTu7lDms1PtF6Dr/Mjbd+8iBBLcIHGHQASy RMNn5kGzmSSVXNe/Gpm3PRo4w21fo2NR1pyC1pvTEFlggPxf430AK8quoQJTqBEyNjbu tcDDxlav+CTmzNXGhr6TtuxaexpY1rVUYSPPkMyjDFu8ukp4aADJZ3HqCJ0016Xjl9B7 vHw0f7b+RKqKnLFQNVyxQE9Y+nKmBjdYiOE+ZamTb8EXqT+8PAmAoOp6zXl2PRcyDIk4 vZdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QV9jS8xG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w2si3850638edu.590.2020.07.27.17.01.15; Mon, 27 Jul 2020 17:01:41 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QV9jS8xG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726617AbgG0X7B (ORCPT + 99 others); Mon, 27 Jul 2020 19:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726171AbgG0X7B (ORCPT ); Mon, 27 Jul 2020 19:59:01 -0400 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E97AC061794 for ; Mon, 27 Jul 2020 16:59:01 -0700 (PDT) Received: by mail-il1-x143.google.com with SMTP id i138so8751589ild.9 for ; Mon, 27 Jul 2020 16:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=40PEaev2AR89A76wIRPh9VfSUB5wAXw9k1uNgC1xL9I=; b=QV9jS8xGVpXS1MnzL+IOlUZ00NhuszDykNVROAl12nkRTkPSRJLf8LWBy7IRcQeBX5 Q7f1VxShoP8ALlK0YhPDWsDbywP86qxft9UyqmnZuX+rR645yR4+nVqTHWAwl2Gb52kv /BqhaOQy6KgfBLL+wrtuwtW4qoNCupFxb70UW7HRopA6YU2/2dju9n1s3CLS4500Q0wK hgbLm2BsulQtzVxybbH+gZEHdWSP1sCjbAhQBJQXzqutkN7XHkgyJE8oR+BNXYDS4r39 T6lK2ZqTNfxiCaLRnb83C7QgeaRLag0TKTConCjZSzPTEONEKPDoaxjfEJfiWpm9lJ/A qAqA== 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=40PEaev2AR89A76wIRPh9VfSUB5wAXw9k1uNgC1xL9I=; b=JaeEkizBXLA7UkcHlA2QpYAusqhNS0rXU5JALLijcxHI2dvbOKInOwyfludYp/CHZr /JHK3jCvXsppufEf6kD6JCq36Fa3/0ly/dOBr4YfwC/uTi8ptOAD3HiZ8doJp/pJGD44 a/4PAXQ+VIymKMFefB0UjTKt4sHkrCg4H/yjFYil2JnJ0vMHtJE3d+mZxi9UzBbL5unF 5zIsCnb/8gigmVYnUuT9M+WeqcXPgFobeLp+JIs5jLHVQZyoTS6tGELm9dx0/pkNYmTA Yii9f92XkO0pT43SetdEYmJObyFf2pbrtByW5QAbTo24n5jvu4RXnOCst7DvO0Jcf83N P8uQ== X-Gm-Message-State: AOAM531LsjdzdUpnChfR7nBKPAFwuyJh8N/3LC6pQuGXZbppXH4zMT8D zbCxIjUKE9KqA5T6K1HuI0Z0zVaK4vo6a6BLPHoKtdzz X-Received: by 2002:a92:7a07:: with SMTP id v7mr16791692ilc.122.1595894340476; Mon, 27 Jul 2020 16:59:00 -0700 (PDT) MIME-Version: 1.0 References: <20200727171112.2781-1-weiyongjun1@huawei.com> In-Reply-To: <20200727171112.2781-1-weiyongjun1@huawei.com> From: "Oliver O'Halloran" Date: Tue, 28 Jul 2020 09:58:49 +1000 Message-ID: Subject: Re: [PATCH -next] powerpc/powernv/sriov: Remove unused but set variable 'phb' To: Wei Yongjun Cc: Hulk Robot , Michael Ellerman , Alexey Kardashevskiy , linuxppc-dev , Linux Kernel Mailing List 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 Tue, Jul 28, 2020 at 3:01 AM Wei Yongjun wrote: > > Gcc report warning as follows: > > arch/powerpc/platforms/powernv/pci-sriov.c:602:25: warning: > variable 'phb' set but not used [-Wunused-but-set-variable] > 602 | struct pnv_phb *phb; > | ^~~ > > This variable is not used, so this commit removing it. > > Reported-by: Hulk Robot > Signed-off-by: Wei Yongjun > --- > arch/powerpc/platforms/powernv/pci-sriov.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/powerpc/platforms/powernv/pci-sriov.c b/arch/powerpc/platforms/powernv/pci-sriov.c > index 8404d8c3901d..7894745fd4f8 100644 > --- a/arch/powerpc/platforms/powernv/pci-sriov.c > +++ b/arch/powerpc/platforms/powernv/pci-sriov.c > @@ -599,10 +599,8 @@ static int pnv_pci_vf_resource_shift(struct pci_dev *dev, int offset) > static void pnv_pci_sriov_disable(struct pci_dev *pdev) > { > u16 num_vfs, base_pe; > - struct pnv_phb *phb; > struct pnv_iov_data *iov; > > - phb = pci_bus_to_pnvhb(pdev->bus); > iov = pnv_iov_get(pdev); > num_vfs = iov->num_vfs; > base_pe = iov->vf_pe_arr[0].pe_number; > Acked-by: Oliver O'Halloran