[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191017182121.103569-19-zenczykowski@gmail.com>
Date: Thu, 17 Oct 2019 11:21:07 -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 19/33] fix unused parameter warning in tg3_dump_{eeprom,regs}()
From: Maciej Żenczykowski <maze@...gle.com>
This fixes:
external/ethtool/tg3.c:8:41: error: unused parameter 'info' [-Werror,-Wunused-parameter]
tg3_dump_eeprom(struct ethtool_drvinfo *info, struct ethtool_eeprom *ee)
external/ethtool/tg3.c:27:39: error: unused parameter 'info' [-Werror,-Wunused-parameter]
tg3_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
Signed-off-by: Maciej Żenczykowski <maze@...gle.com>
Change-Id: I9b357d371095df4b24f2c6ec32fa3d0c99731805
---
tg3.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tg3.c b/tg3.c
index 3232339..8698391 100644
--- a/tg3.c
+++ b/tg3.c
@@ -4,8 +4,8 @@
#define TG3_MAGIC 0x669955aa
-int
-tg3_dump_eeprom(struct ethtool_drvinfo *info, struct ethtool_eeprom *ee)
+int tg3_dump_eeprom(struct ethtool_drvinfo *info maybe_unused,
+ struct ethtool_eeprom *ee)
{
int i;
@@ -23,8 +23,8 @@ tg3_dump_eeprom(struct ethtool_drvinfo *info, struct ethtool_eeprom *ee)
return 0;
}
-int
-tg3_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+int tg3_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+ struct ethtool_regs *regs)
{
int i;
u32 reg;
--
2.23.0.866.gb869b98d4c-goog
Powered by blists - more mailing lists