Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp539830ybv; Wed, 19 Feb 2020 04:36:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwZGsHmfHrv87OnGsRauTl5SFJZnYiwmgOitnaC5C1AAdvoOGqkWOxoD4QOzhM4uX43a/8c X-Received: by 2002:aca:b483:: with SMTP id d125mr4565391oif.167.1582115766336; Wed, 19 Feb 2020 04:36:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582115766; cv=none; d=google.com; s=arc-20160816; b=mS0DRzyiw6dF6Kj+qIHfUQGYFofF68RuDgSrvNVwB0w1PFpU97V9EyoHEUxxMJwlEl bBBdggLa6tCo4UlWErNQV8t8H44rDaPrjdYAkRgwc7sM9klwh05TmqlnbB2RFrv/xE7d TW1CN3ZKgOmbut6ZKfGpzutLCwNQJm7D6kYwtPFCwoCUWF0vMEMhc/XzuCtTfgcKSsNS bito9mr0ROT4jg3qometQ9Aeb1hFqBsc1bXPI+fDI70KUH5LQPD6cpspe0iqMQFkOn3s Y0uxjkbqBBpaCgnQ7+UNjXlo12wEDRMP2POGZ3b7WDh507OnltUVE7Lw2gfxQPzZNZM7 H/9g== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=PGthR8D1OahPd8ivS+TRJAj+pfwtQMtArTZTx2++dMI=; b=hiAmhPItgL/xxj3fiNsS+qJrsnBa5llt2xcEZaZ0tgm7c4ibrFaHT4ahA+yoAB3hZB Mw1BG74F+LAAJMs/YujAIyMo1ym/qJXyPkotlWvRAw/hWG1oqC8qfZvDNtih1ECqtStU EfxzItHbbmDEvEkYcA9U3zgT/NqcShu0XYlOJM3sdnAJ9m5PBFY+j3dO5mrsHNi3ORxM v3HuMUrpz8LClFkrTA5KywxhxGrXTMMFhLIHi/3C0Bc1OTmUC9GASlUBZHo+XoswyFRu HGApQeFz4+qgGu9fNQgQMYxCKiyPYDz/zDnBC4J/sLGAxZnoA4kJRs5Ct4hUs9HjZpof JFsA== 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 z7si9195133oid.150.2020.02.19.04.35.52; Wed, 19 Feb 2020 04:36:06 -0800 (PST) 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 S1726977AbgBSMfs (ORCPT + 99 others); Wed, 19 Feb 2020 07:35:48 -0500 Received: from dispatch1-us1.ppe-hosted.com ([148.163.129.52]:33832 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbgBSMfr (ORCPT ); Wed, 19 Feb 2020 07:35:47 -0500 X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us4.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 063D9800077; Wed, 19 Feb 2020 12:35:46 +0000 (UTC) Received: from [10.17.20.62] (10.17.20.62) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 19 Feb 2020 12:35:41 +0000 Subject: Re: [PATCH v2 net-next] sfc: remove unused variable 'efx_default_channel_type' To: YueHaibing , , , , CC: , References: <20200211141606.47180-1-yuehaibing@huawei.com> <20200219013458.47620-1-yuehaibing@huawei.com> From: Martin Habets Message-ID: <14ded279-719b-41f6-0ee6-56e782f9cfb5@solarflare.com> Date: Wed, 19 Feb 2020 12:35:40 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200219013458.47620-1-yuehaibing@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.17.20.62] X-ClientProxiedBy: ukex01.SolarFlarecom.com (10.17.10.4) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1020-25240.003 X-TM-AS-Result: No-5.114700-8.000000-10 X-TMASE-MatchedRID: oTBA/+sdKabmLzc6AOD8DfHkpkyUphL9eouvej40T4gd0WOKRkwsh/pe Js18NRDdXqyKGNlj+bAOxUl2LETEm3DrA8J4/NO6bm8pd3f6T7/wKD5QtMI+mVSOymiJfTYXeUp nydDvXEaGy3RToYQak6q9CuM/w766nMA3Sw1wynk/ApMPW/xhXkyQ5fRSh2650AWKUvQ4UnVdaO 8DxOlYWKT06nkcV3iq9D5vXEWlG7Z2m+j+coBLPp4CIKY/Hg3AtOt1ofVlaoLUHQeTVDUrItRnE QCUU+jzjoczmuoPCq3oqCWlP9IHhbGpmBtOWT82gNZ8DuQuuZDHoz0dNUiX8ZdruZ1qStaEIUNv dCYa2BPomz7ic/IL9UsRVrP5dTCHdThcEcVE5i3i+fTMx9KaNitss6PUa4/cD6GAt+UbooSj1CO 4X0EqeXggXFAhtWiYlExlQIQeRG0= X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.114700-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1020-25240.003 X-MDID: 1582115746-XXmW6YoeFmi8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/02/2020 01:34, YueHaibing wrote: > drivers/net/ethernet/sfc/efx.c:116:38: warning: > efx_default_channel_type defined but not used [-Wunused-const-variable=] > > commit 83975485077d ("sfc: move channel alloc/removal code") > left behind this, remove it. > > Reported-by: Hulk Robot > Fixes: 83975485077d ("sfc: move channel alloc/removal code") > Signed-off-by: YueHaibing Acked-by: Martin Habets > --- > v2: Add Fixes tag > --- > drivers/net/ethernet/sfc/efx.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c > index 4481f21..256807c 100644 > --- a/drivers/net/ethernet/sfc/efx.c > +++ b/drivers/net/ethernet/sfc/efx.c > @@ -113,7 +113,6 @@ MODULE_PARM_DESC(debug, "Bitmapped debugging message enable value"); > * > *************************************************************************/ > > -static const struct efx_channel_type efx_default_channel_type; > static void efx_remove_port(struct efx_nic *efx); > static int efx_xdp_setup_prog(struct efx_nic *efx, struct bpf_prog *prog); > static int efx_xdp(struct net_device *dev, struct netdev_bpf *xdp); >