[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191017182121.103569-16-zenczykowski@gmail.com>
Date: Thu, 17 Oct 2019 11:21:04 -0700
From: Maciej Żenczykowski <zenczykowski@...il.com>
To: Maciej Żenczykowski <maze@...gle.com>,
"John W . Linville" <linville@...driver.com>
Cc: netdev@...r.kernel.org
Subject: [PATCH 16/33] fix unused parameter warning in st_{mac100,gmac}_dump_regs()
From: Maciej Żenczykowski <maze@...gle.com>
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 <maze@...gle.com>
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
Powered by blists - more mailing lists