aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2019-10-17 11:20:58 -0700
committerJohn W. Linville <linville@tuxdriver.com>2019-10-29 13:51:21 -0400
commit726d6074b3b33c7c7d61e4bab1f8f3c6b06c7394 (patch)
tree754b7aabcf52f770e7b160d92163802b437a2f0c
parent967177c861bf77959bb986f201f3c4d3f13e4385 (diff)
downloadethtool-726d6074b3b33c7c7d61e4bab1f8f3c6b06c7394.tar.gz
fix unused parameter warning in ixgbe_dump_regs()
This fixes: external/ethtool/ixgbe.c:171:41: error: unused parameter 'info' [-Werror,-Wunused-parameter] ixgbe_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs) Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I745f6b9582bc176eafdce9e292a4bf2a951c0c69 Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--ixgbe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ixgbe.c b/ixgbe.c
index 6779402..9754b2a 100644
--- a/ixgbe.c
+++ b/ixgbe.c
@@ -168,7 +168,8 @@ ixgbe_get_mac_type(u16 device_id)
}
int
-ixgbe_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+ixgbe_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+ struct ethtool_regs *regs)
{
u32 *regs_buff = (u32 *)regs->data;
u32 regs_buff_len = regs->len / sizeof(*regs_buff);