Skip to contentSkip to conversation

sfc: remove unused variable 'efx_default_channel_type'

PATCH Superseded YueHaibing 3 participants 5 messages Feb 11, 2020 – Feb 20, 2020

Subsystems (3)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

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
index 4481f21a1f43..256807c28ff7 100644
@@ -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
#1 lore raw
Quoted 2 lines · YueHaibing

drivers/net/ethernet/sfc/efx.c:116:38: warning:
efx_default_channel_type defined 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
---
 drivers/net/ethernet/sfc/efx.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/sfc/efx.c +0 -1
index 4481f21a1f43..256807c28ff7 100644
@@ -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);
author
#2 lore raw

PATCH v2 1/1 sfc: remove unused variable 'efx_default_channel_type'

In reply to YueHaibing

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.

Fixes 83975485077d ("sfc: move channel alloc/removal code")

---
v2: Add Fixes tag

---
 drivers/net/ethernet/sfc/efx.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/sfc/efx.c +0 -1
index 4481f21..256807c 100644
@@ -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
Acked-by on v2 1/1
#3 lore raw
Quoted 9 lines · YueHaibing

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.

Fixes 83975485077d ("sfc: move channel alloc/removal code")
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
index 4481f21..256807c 100644
@@ -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);
maintainer Applied
#4 lore raw
In reply to YueHaibing

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_type defined but not used [-Wunused-const-variable=]

commit 83975485077d ("sfc: move channel alloc/removal code") left behind this, remove it.

Fixes 83975485077d ("sfc: move channel alloc/removal code")

---
v2: Add Fixes tag

Applied, thanks.