Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp54880ybv; Tue, 18 Feb 2020 17:36:11 -0800 (PST) X-Google-Smtp-Source: APXvYqycQ0AWmYpqTykgLfBljTkFhERzlGDmzWURKxXPEKoDHsIoeXi8TK5aMqUBEbGoNQQWKUxq X-Received: by 2002:a05:6830:13c3:: with SMTP id e3mr3136618otq.180.1582076170991; Tue, 18 Feb 2020 17:36:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582076170; cv=none; d=google.com; s=arc-20160816; b=wOir6KjxwZaeZtv5NIjxbQY4gK80ozx1naIXOngEYZ5MCSbmIFrH8ruOmV7/jsjGU6 /GYNW/705F9ZBr3w+/6zGfQBzJifFN13ER2YtpeYgKFx6Gnd7uQvVzQKKgEh/1ezA4bl FkNixuOegfxZQDhMrKLvwrYTTSGgXokFbR7Sj2Knr7loQVQ8rolaMrJoVjTCTleBiPsU GiSTmfHpiiWOcdXXrW0KWduEHFc4UhvbX3GjWq4BzNHycNTzOjVFUpe/P1+6dZ5JvO8f /c/qiSuarPfZQFydqFsl1N4DEgwa+A3OYhvJ4lnoh/SRkBUkgWd/5uFgMcPuiCuR+B3r YMRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=57Wq+96wkish7R3VvAFabaV8ZsqfoT/MAkcd9zm/2h8=; b=jIjCGQNxcuuBNVMb6EajHtwulpmLSM2RTbZgpHtm/yTyyO40zSJeVMTaqNOVY7CQ9l TORUehW4qmAzXFROcWCP/7oGu1i57PjagVOsbMrlEhibkRQ7cjYeARaWoG6OJ5tjy8Cn jo4KXp1uaw7m8YdP/aKpcZzBdEUIPxPGBUrDuJQNo0Z5UPYCG5PWJ9oNMYLrQb1crHzV Ggx2bDBnLyXQ7lPGQ/9ndusvlqACtf6xk2mBkgpzfy+DsGDQ5mWiL3uVu/ekGh4POl38 GYF3o90vIvl7KPlSVArO+C+dut8TBlVCCa/nJHSwj8kabn5LVFnYyDJlJKJgoa8CUD/i 5PJQ== 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 i6si336605otp.5.2020.02.18.17.35.54; Tue, 18 Feb 2020 17:36:10 -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 S1727232AbgBSBfX (ORCPT + 99 others); Tue, 18 Feb 2020 20:35:23 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:52126 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726655AbgBSBfX (ORCPT ); Tue, 18 Feb 2020 20:35:23 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 298F51DEACB71765B711; Wed, 19 Feb 2020 09:35:21 +0800 (CST) Received: from localhost (10.173.223.234) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Wed, 19 Feb 2020 09:35:12 +0800 From: YueHaibing To: , , , , CC: , , YueHaibing Subject: [PATCH v2 net-next] sfc: remove unused variable 'efx_default_channel_type' Date: Wed, 19 Feb 2020 09:34:58 +0800 Message-ID: <20200219013458.47620-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 In-Reply-To: <20200211141606.47180-1-yuehaibing@huawei.com> References: <20200211141606.47180-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.173.223.234] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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); -- 2.7.4