diff options
author | Maciej Żenczykowski <maze@google.com> | 2019-10-17 11:21:06 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2019-10-29 13:51:21 -0400 |
commit | 211c99e57a541a66fc862d95ba8c3cae9f5a5e82 (patch) | |
tree | 820486d8bdc36be41193d3e0d99334474f833707 | |
parent | 362fb8b726a4d961d6200f1f36666f69629cc584 (diff) | |
download | ethtool-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |