Subject: [PATCH 16/33] fix unused parameter warning in st_{mac100,gmac}_dump_regs()

From: Maciej Żenczykowski <[email-masked]>
Date: Thu, 17 Oct 2019 11:21:04 -0700

From: Maciej Żenczykowski <[email-masked]>

This fixes:
  external/ethtool/stmmac.c:21:49: error: unused parameter 'info' [-Werror,-Wunused-parameter]
  int st_mac100_dump_regs(struct ethtool_drvinfo *info,

  external/ethtool/stmmac.c:54:47: error: unused parameter 'info' [-Werror,-Wunused-parameter]
  int st_gmac_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)

Signed-off-by: Maciej Żenczykowski <[email-masked]>
Change-Id: Ie72738aea1d903df4aec417cbead9e6109ee108f
---
 stmmac.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/stmmac.c b/stmmac.c
index 79ef151..98d9058 100644
--- a/stmmac.c
+++ b/stmmac.c
@@ -18,7 +18,7 @@
 #define GMAC_REG_NUM		55
 #define GMAC_DMA_REG_NUM	23
 
-int st_mac100_dump_regs(struct ethtool_drvinfo *info,
+int st_mac100_dump_regs(struct ethtool_drvinfo *info maybe_unused,
 			struct ethtool_regs *regs)
 {
 	int i;
@@ -51,7 +51,8 @@ int st_mac100_dump_regs(struct ethtool_drvinfo *info,
 	return 0;
 }
 
-int st_gmac_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+int st_gmac_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+		      struct ethtool_regs *regs)
 {
 	int i;
 	unsigned int *stmmac_reg = (unsigned int *)regs->data;
-- 
2.23.0.866.gb869b98d4c-goog