[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191017182121.103569-24-zenczykowski@gmail.com>
Date: Thu, 17 Oct 2019 11:21:12 -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 24/33] fix unused parameter warning in e1000_dump_regs()
From: Maciej Żenczykowski <maze@...gle.com>
This fixes:
external/ethtool/e1000.c:368:41: error: unused parameter 'info' [-Werror,-Wunused-parameter]
e1000_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
Signed-off-by: Maciej Żenczykowski <maze@...gle.com>
Change-Id: Ib0bf9e87137f256adf6e93f90d7f9426ab376a52
---
e1000.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/e1000.c b/e1000.c
index afeb7f8..da057b7 100644
--- a/e1000.c
+++ b/e1000.c
@@ -364,8 +364,8 @@ e1000_get_mac_type(u16 device_id, u8 revision_id)
return mac_type;
}
-int
-e1000_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+int e1000_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+ struct ethtool_regs *regs)
{
u32 *regs_buff = (u32 *)regs->data;
u16 hw_device_id = (u16)regs->version;
--
2.23.0.866.gb869b98d4c-goog
Powered by blists - more mailing lists