diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-08-22 17:25:44 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-22 21:40:21 -0700 |
commit | 191672ca07a7c10c3b84d01019a33d59b4317997 (patch) | |
tree | b399bf62efe915c7bd9559aee968b61236ce2c05 /virt | |
parent | 93cfb6c17690c465509967aeb237717d10513a88 (diff) | |
download | linux-stable-191672ca07a7c10c3b84d01019a33d59b4317997.tar.gz linux-stable-191672ca07a7c10c3b84d01019a33d59b4317997.tar.bz2 linux-stable-191672ca07a7c10c3b84d01019a33d59b4317997.zip |
net_sched: fix unused variable warning in stmmac
The new tcf_exts_for_each_action() macro doesn't reference its
arguments when CONFIG_NET_CLS_ACT is disabled, which leads to
a harmless warning in at least one driver:
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c: In function 'tc_fill_actions':
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:64:6: error: unused variable 'i' [-Werror=unused-variable]
Adding a cast to void lets us avoid this kind of warning.
To be on the safe side, do it for all three arguments, not
just the one that caused the warning.
Fixes: 244cd96adb5f ("net_sched: remove list_head from tc_action")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions