aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2019-10-17 11:21:10 -0700
committerJohn W. Linville <linville@tuxdriver.com>2019-10-29 13:51:21 -0400
commitdebac024b409341414e803fcaf7dd171a3a1e8a2 (patch)
treeefbd89b474a81adc611859f75dd7fd146cfec3bf
parentd434eea12c7ed6d547cfb2a754ec9fbdbc3b8f3e (diff)
downloadethtool-debac024b409341414e803fcaf7dd171a3a1e8a2.tar.gz
fix unused parameter warning in de2104[01]_dump_regs()
This fixes: external/ethtool/de2104x.c:115:43: error: unused parameter 'info' [-Werror,-Wunused-parameter] de21040_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs) external/ethtool/de2104x.c:421:43: error: unused parameter 'info' [-Werror,-Wunused-parameter] de21041_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs) Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I154a2a283f83e22180217b9aeec46bd8290a2200 Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--de2104x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/de2104x.c b/de2104x.c
index 856e0c0..cc03533 100644
--- a/de2104x.c
+++ b/de2104x.c
@@ -111,8 +111,8 @@ print_rx_missed(u32 csr8)
}
}
-static void
-de21040_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+static void de21040_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+ struct ethtool_regs *regs)
{
u32 tmp, v, *data = (u32 *)regs->data;
@@ -417,8 +417,8 @@ de21040_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
v & (1<<0) ? " Jabber disable\n" : "");
}
-static void
-de21041_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+static void de21041_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+ struct ethtool_regs *regs)
{
u32 tmp, v, *data = (u32 *)regs->data;