aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2019-10-17 11:21:14 -0700
committerJohn W. Linville <linville@tuxdriver.com>2019-10-29 13:51:21 -0400
commit8b84f1a4b1750ecfd86a931b4649993db2b8e1fd (patch)
treece2cd46abdac0460ef025c47bd25b37d79d32b03
parentf725f5a654e83d3054510cb12d2a255acf320c5e (diff)
downloadethtool-8b84f1a4b1750ecfd86a931b4649993db2b8e1fd.tar.gz
fix unused parameter warning in at76c50x_usb_dump_regs()
This fixes: external/ethtool/at76c50x-usb.c:16:48: error: unused parameter 'info' [-Werror,-Wunused-parameter] at76c50x_usb_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs) Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I4ca9edb1b155c63f14268aebf7bdc81bce53b85d Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--at76c50x-usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/at76c50x-usb.c b/at76c50x-usb.c
index 39e24a4..0121e98 100644
--- a/at76c50x-usb.c
+++ b/at76c50x-usb.c
@@ -12,8 +12,8 @@ static char *hw_versions[] = {
" 505AMX",
};
-int
-at76c50x_usb_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+int at76c50x_usb_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+ struct ethtool_regs *regs)
{
u8 version = (u8)(regs->version >> 24);
u8 rev_id = (u8)(regs->version);