diff mbox series

[ethtool,3/7] igc: mark unused callback parameter

Message ID a0b45029b9a6dfed847566f13adced7c3d0f576a.1596451857.git.mkubecek@suse.cz
State New
Headers show
Series [ethtool,1/7] rename maybe_unused macro to __maybe_unused | expand

Commit Message

Michal Kubecek Aug. 3, 2020, 11:57 a.m. UTC
Mark info parameter of igc_dump_regs() as unused to get rid of gcc warning.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
---
 igc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/igc.c b/igc.c
index 2c4abcef1e15..1550ac0c1c2b 100644
--- a/igc.c
+++ b/igc.c
@@ -94,7 +94,8 @@  static const char *bit_to_prio(u32 val)
 	return val ? "low" : "high";
 }
 
-int igc_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
+int igc_dump_regs(struct ethtool_drvinfo *info __maybe_unused,
+		  struct ethtool_regs *regs)
 {
 	u32 reg;
 	int offset, i;