sfc: remove unused variable 'efx_default_channel_type'
Subsystems (3)
PATCH 1/1 sfc: remove unused variable 'efx_default_channel_type'
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.
--- drivers/net/ethernet/sfc/efx.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/sfc/efx.c +0 -1
@@ -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);
Signature · 1 line
2.20.1
Quoted 2 lines · YueHaibing
drivers/net/ethernet/sfc/efx.c:116:38: warning:
efx_default_channel_typedefined but not used [-Wunused-const-variable=]
This is a good fix, but net-next is closed at the moment. Please resubmit it when it reopens.
Quoted 2 lines
commit
83975485077d("sfc: move channel alloc/removal code") left behind this, remove it.
Please add this info with a "Fixes:" tag.
Thanks,
Martin
Quoted 20 lines
Reported-by Hulk Robot <[email protected]>Signed-off-by YueHaibing <[email protected]>--- drivers/net/ethernet/sfc/efx.c | 1 - 1 file changed, 1 deletion(-)drivers/net/ethernet/sfc/efx.c +0
-1@@ -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);
PATCH v2 1/1 sfc: remove unused variable 'efx_default_channel_type'
In reply to YueHaibingdrivers/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.
---
v2: Add Fixes tag
--- drivers/net/ethernet/sfc/efx.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/sfc/efx.c +0 -1
@@ -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);
Signature · 1 line
2.7.4
Quoted 9 lines · YueHaibing
drivers/net/ethernet/sfc/efx.c:116:38: warning:
efx_default_channel_typedefined but not used [-Wunused-const-variable=]commit
83975485077d("sfc: move channel alloc/removal code") left behind this, remove it.Reported-by Hulk Robot <[email protected]>Fixes 83975485077d ("sfc: move channel alloc/removal code")Signed-off-by YueHaibing <[email protected]>
Quoted 19 lines
---
v2: Add Fixes tag--- drivers/net/ethernet/sfc/efx.c | 1 - 1 file changed, 1 deletion(-)drivers/net/ethernet/sfc/efx.c +0
-1@@ -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);
From: YueHaibing <[email protected]>
Date: Wed, 19 Feb 2020 09:34:58 +0800
Quoted 11 lines
drivers/net/ethernet/sfc/efx.c:116:38: warning:
efx_default_channel_typedefined but not used [-Wunused-const-variable=]commit
83975485077d("sfc: move channel alloc/removal code") left behind this, remove it.Reported-by Hulk Robot <[email protected]>Fixes 83975485077d ("sfc: move channel alloc/removal code")Signed-off-by YueHaibing <[email protected]>---
v2: Add Fixes tag
Applied, thanks.