[13/33] fix unused parameter warning in {skge,sky2}_dump_regs()
diff mbox series

Message ID 20191017182121.103569-13-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/marvell.c:262:44: error: unused parameter 'info' [-Werror,-Wunused-parameter]
  int skge_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)

  external/ethtool/marvell.c:382:44: error: unused parameter 'info' [-Werror,-Wunused-parameter]
  int sky2_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)

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

Patch
diff mbox series

diff --git a/marvell.c b/marvell.c
index 27785be..9e5440d 100644
--- a/marvell.c
+++ b/marvell.c
@@ -259,7 +259,8 @@  static void dump_control(u8 *r)
 	printf("General Purpose  I/O             0x%08X\n", *(u32 *) (r + 0x15c));
 }
 
-int skge_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+int skge_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+		   struct ethtool_regs *regs)
 {
 	const u32 *r = (const u32 *) regs->data;
 	int dual = !(regs->data[0x11a] & 1);
@@ -379,7 +380,8 @@  static void dump_prefetch(const char *name, const void *r)
 	}
 }
 
-int sky2_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+int sky2_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+		   struct ethtool_regs *regs)
 {
 	const u16 *r16 = (const u16 *) regs->data;
 	const u32 *r32 = (const u32 *) regs->data;