[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191017182121.103569-30-zenczykowski@gmail.com>
Date: Thu, 17 Oct 2019 11:21:18 -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 30/33] fix unused parameter warning in ibm_emac_dump_regs()
From: Maciej Żenczykowski <maze@...gle.com>
This fixes:
external/ethtool/ibm_emac.c:317:48: error: unused parameter 'info' [-Werror,-Wunused-parameter]
int ibm_emac_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
Signed-off-by: Maciej Żenczykowski <maze@...gle.com>
Change-Id: I18f305612e48ae76031ae327acf134d1623a8a3d
---
ibm_emac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ibm_emac.c b/ibm_emac.c
index 75cb560..3259c17 100644
--- a/ibm_emac.c
+++ b/ibm_emac.c
@@ -314,7 +314,8 @@ static void *print_tah_regs(void *buf)
return p + 1;
}
-int ibm_emac_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+int ibm_emac_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+ struct ethtool_regs *regs)
{
struct emac_ethtool_regs_hdr *hdr =
(struct emac_ethtool_regs_hdr *)regs->data;
--
2.23.0.866.gb869b98d4c-goog
Powered by blists - more mailing lists