[05/33] fix unused parameter warning in altera_tse_dump_regs()
diff mbox series

Message ID 20191017182121.103569-5-zenczykowski@gmail.com
State Accepted
Delegated to: John Linville
Headers show
Series
  • [01/33] fix arithmetic on pointer to void is a GNU extension warning
Related show

Commit Message

Maciej ┼╗enczykowski Oct. 17, 2019, 6:20 p.m. UTC
From: Maciej ┼╗enczykowski <maze@google.com>

This fixes:
  external/ethtool/tse.c:28:50: error: unused parameter 'info' [-Werror,-Wunused-parameter]
  int altera_tse_dump_regs(struct ethtool_drvinfo *info,

Signed-off-by: Maciej ┼╗enczykowski <maze@google.com>
Change-Id: I555f0e3c55bba999aeb64f1e1435744590ea389d
---
 tse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/tse.c b/tse.c
index f554dfe..e5241ee 100644
--- a/tse.c
+++ b/tse.c
@@ -25,7 +25,7 @@  bitset(u32 val, int bit)
 	return 0;
 }
 
-int altera_tse_dump_regs(struct ethtool_drvinfo *info,
+int altera_tse_dump_regs(struct ethtool_drvinfo *info maybe_unused,
 			 struct ethtool_regs *regs)
 {
 	int i;