From: Maciej Żenczykowski <[email protected]>

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 <[email protected]>
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

Reply via email to