[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191017182121.103569-29-zenczykowski@gmail.com>
Date: Thu, 17 Oct 2019 11:21:17 -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 29/33] fix unused parameter warning in et131x_dump_regs()
From: Maciej Żenczykowski <maze@...gle.com>
This fixes:
external/ethtool/et131x.c:5:46: error: unused parameter 'info' [-Werror,-Wunused-parameter]
int et131x_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
Signed-off-by: Maciej Żenczykowski <maze@...gle.com>
Change-Id: I4e90a489bdd3a0a04817149b1b6a86e7ef9f106d
---
et131x.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/et131x.c b/et131x.c
index 36abaa2..1b06071 100644
--- a/et131x.c
+++ b/et131x.c
@@ -2,7 +2,8 @@
#include <string.h>
#include "internal.h"
-int et131x_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+int et131x_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+ struct ethtool_regs *regs)
{
u8 version = (u8)(regs->version >> 24);
u32 *reg = (u32 *)regs->data;
--
2.23.0.866.gb869b98d4c-goog
Powered by blists - more mailing lists