diff options
author | 2021-06-01 22:01:48 +0800 | |
---|---|---|
committer | 2021-06-01 17:00:51 -0700 | |
commit | 6990c7f44c0dee4de6cf43fee0e5e7680c1a973a (patch) | |
tree | fdd296916a0c45ad6a46412ff16032ea7739ac3c /drivers/net/macvlan.c | |
parent | hamradio: bpqether: Fix -Wunused-const-variable warning (diff) | |
download | wireguard-linux-6990c7f44c0dee4de6cf43fee0e5e7680c1a973a.tar.xz wireguard-linux-6990c7f44c0dee4de6cf43fee0e5e7680c1a973a.zip |
cxgb4: Fix -Wunused-const-variable warning
If CONFIG_PCI_IOV is n, make W=1 warns:
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:3909:33:
warning: ‘cxgb4_mgmt_ethtool_ops’ defined but not used [-Wunused-const-variable=]
static const struct ethtool_ops cxgb4_mgmt_ethtool_ops = {
^~~~~~~~~~~~~~~~~~~~~~
Move it into #ifdef block to fix this.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvlan.c')
0 files changed, 0 insertions, 0 deletions