aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2019-10-17 11:21:00 -0700
committerJohn W. Linville <linville@tuxdriver.com>2019-10-29 13:51:21 -0400
commit7f84c133bd6a29e2bc9ce65560ad8c20fa96d763 (patch)
treedf883dd067445e41e003a6596fb12cef58514ae7
parent02d0aaaf43e20eb22ff172691137fb59ce38b59d (diff)
downloadethtool-7f84c133bd6a29e2bc9ce65560ad8c20fa96d763.tar.gz
fix unused parameter warning in lan78xx_dump_regs()
This fixes: external/ethtool/lan78xx.c:5:47: error: unused parameter 'info' [-Werror,-Wunused-parameter] int lan78xx_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs) Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ibc67c27248ca623e9ca8534d43c888af3cf9997b Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--lan78xx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lan78xx.c b/lan78xx.c
index bb64e80..46ade1c 100644
--- a/lan78xx.c
+++ b/lan78xx.c
@@ -2,7 +2,8 @@
#include <string.h>
#include "internal.h"
-int lan78xx_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+int lan78xx_dump_regs(struct ethtool_drvinfo *info maybe_unused,
+ struct ethtool_regs *regs)
{
unsigned int *lan78xx_reg = (unsigned int *)regs->data;