aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2019-10-17 11:21:06 -0700
committerJohn W. Linville <linville@tuxdriver.com>2019-10-29 13:51:21 -0400
commit211c99e57a541a66fc862d95ba8c3cae9f5a5e82 (patch)
tree820486d8bdc36be41193d3e0d99334474f833707
parent362fb8b726a4d961d6200f1f36666f69629cc584 (diff)
downloadethtool-211c99e57a541a66fc862d95ba8c3cae9f5a5e82.tar.gz
fix unused parameter warning in fec_8xx_dump_regs()
This fixes: external/ethtool/fec_8xx.c:50:47: error: unused parameter 'info' [-Werror,-Wunused-parameter] int fec_8xx_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs) Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Iefd61cf2b89804fab8ca6c845196706684ddd45e Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--fec_8xx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fec_8xx.c b/fec_8xx.c
index 69db8c8..02ecaef 100644
--- a/fec_8xx.c
+++ b/fec_8xx.c
@@ -47,7 +47,8 @@ struct fec {
(unsigned long)(offsetof(struct fec, x)), \
#x, f->x)
-int fec_8xx_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+int fec_8xx_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+ struct ethtool_regs *regs)
{
struct fec *f = (struct fec *)regs->data;