aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2019-10-17 11:20:54 -0700
committerJohn W. Linville <linville@tuxdriver.com>2019-10-29 13:51:21 -0400
commit04042673dd20dcc257802b8a4db09802a540a190 (patch)
treeeb3418b25b4fc25b5b817d1476f8740ad720847d
parent57c72982892b739c5adaa4ee5ae99cc2b39e0b49 (diff)
downloadethtool-04042673dd20dcc257802b8a4db09802a540a190.tar.gz
fix unused parameter warning in sfc_dump_regs()
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 Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--sfc.c2
1 files changed, 1 insertions, 1 deletions
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;