[09/33] fix unused parameter warning in netsemi_dump_eeprom()
diff mbox series

Message ID 20191017182121.103569-9-zenczykowski@gmail.com
State Accepted
Delegated to: John Linville
Headers show
Series
  • [01/33] fix arithmetic on pointer to void is a GNU extension warning
Related show

Commit Message

Maciej ┼╗enczykowski Oct. 17, 2019, 6:20 p.m. UTC
From: Maciej ┼╗enczykowski <maze@google.com>

This fixes:
  external/ethtool/natsemi.c:967:45: error: unused parameter 'info' [-Werror,-Wunused-parameter]
  natsemi_dump_eeprom(struct ethtool_drvinfo *info, struct ethtool_eeprom *ee)

Signed-off-by: Maciej ┼╗enczykowski <maze@google.com>
Change-Id: I40d66f887d18ac6e69e1f365767a19f580a44f69
---
 natsemi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/natsemi.c b/natsemi.c
index e6e94b0..ce82c42 100644
--- a/natsemi.c
+++ b/natsemi.c
@@ -964,7 +964,8 @@  natsemi_dump_regs(struct ethtool_drvinfo *info maybe_unused,
 }
 
 int
-natsemi_dump_eeprom(struct ethtool_drvinfo *info, struct ethtool_eeprom *ee)
+natsemi_dump_eeprom(struct ethtool_drvinfo *info maybe_unused,
+		    struct ethtool_eeprom *ee)
 {
 	int i;
 	u16 *eebuf = (u16 *)ee->data;