[06/33] fix unused parameter warning in sfc_dump_regs()
diff mbox series

Message ID 20191017182121.103569-6-zenczykowski@gmail.com
State Accepted
Delegated to: John Linville
Headers show
Series
  • [01/33] fix arithmetic on pointer to void is a GNU extension warning
Related show

Commit Message

Maciej ┼╗enczykowski Oct. 17, 2019, 6:20 p.m. UTC
From: Maciej ┼╗enczykowski <maze@google.com>

This fixes:
  external/ethtool/sfc.c:3894:39: error: unused parameter 'info' [-Werror,-Wunused-parameter]
  sfc_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)

Signed-off-by: Maciej ┼╗enczykowski <maze@google.com>
Change-Id: Ia255a280742332c44b66bf8f5bb678abc7e3467b
---
 sfc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/sfc.c b/sfc.c
index b4c590f..69c61e2 100644
--- a/sfc.c
+++ b/sfc.c
@@ -3891,7 +3891,7 @@  print_complex_table(unsigned revision, const struct efx_nic_reg_table *table,
 }
 
 int
-sfc_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+sfc_dump_regs(struct ethtool_drvinfo *info maybe_unused, struct ethtool_regs *regs)
 {
 	const struct efx_nic_reg *reg;
 	const struct efx_nic_reg_table *table;