[22/33] fix unused parameter warning in de2104[01]_dump_regs()
diff mbox series

Message ID 20191017182121.103569-22-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:21 p.m. UTC
From: Maciej ┼╗enczykowski <maze@google.com>

This fixes:
  external/ethtool/de2104x.c:115:43: error: unused parameter 'info' [-Werror,-Wunused-parameter]
  de21040_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)

  external/ethtool/de2104x.c:421:43: error: unused parameter 'info' [-Werror,-Wunused-parameter]
  de21041_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)

Signed-off-by: Maciej ┼╗enczykowski <maze@google.com>
Change-Id: I154a2a283f83e22180217b9aeec46bd8290a2200
---
 de2104x.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Patch
diff mbox series

diff --git a/de2104x.c b/de2104x.c
index 856e0c0..cc03533 100644
--- a/de2104x.c
+++ b/de2104x.c
@@ -111,8 +111,8 @@  print_rx_missed(u32 csr8)
 	}
 }
 
-static void
-de21040_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+static void de21040_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+			      struct ethtool_regs *regs)
 {
 	u32 tmp, v, *data = (u32 *)regs->data;
 
@@ -417,8 +417,8 @@  de21040_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
 		v & (1<<0) ? "      Jabber disable\n" : "");
 }
 
-static void
-de21041_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+static void de21041_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+			      struct ethtool_regs *regs)
 {
 	u32 tmp, v, *data = (u32 *)regs->data;