[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191017182121.103569-11-zenczykowski@gmail.com>
Date: Thu, 17 Oct 2019 11:20:59 -0700
From: Maciej Żenczykowski <zenczykowski@...il.com>
To: Maciej Żenczykowski <maze@...gle.com>,
"John W . Linville" <linville@...driver.com>
Cc: netdev@...r.kernel.org
Subject: [PATCH 11/33] fix unused parameter warning in realtek_dump_regs()
From: Maciej Żenczykowski <maze@...gle.com>
This fixes:
external/ethtool/realtek.c:244:43: error: unused parameter 'info' [-Werror,-Wunused-parameter]
realtek_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
Signed-off-by: Maciej Żenczykowski <maze@...gle.com>
Change-Id: I62fa7dbb66d5ae545272b41538198787dbbfbe25
---
realtek.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/realtek.c b/realtek.c
index e437466..d10cfd4 100644
--- a/realtek.c
+++ b/realtek.c
@@ -241,7 +241,8 @@ print_intr_bits(u16 mask)
}
int
-realtek_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+realtek_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+ struct ethtool_regs *regs)
{
u32 *data = (u32 *) regs->data;
u8 *data8 = (u8 *) regs->data;
--
2.23.0.866.gb869b98d4c-goog
Powered by blists - more mailing lists