summaryrefslogtreecommitdiff
path: root/kernel/sys_ni.c
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>2020-09-08 10:17:13 +0300
committerDavid S. Miller <davem@davemloft.net>2020-09-08 20:11:57 -0700
commit071445c6051f71e98d0fa9bbbb0ae575c677cb20 (patch)
tree2932fe5dcc36d6f270cfb856323dc2ceef4e9b3e /kernel/sys_ni.c
parent8c70b2681766ebc0fa4ffa6eb47bd9c858adfef1 (diff)
net: bridge: mcast: fix unused br var when lockdep isn't defined
Stephen reported the following warning: net/bridge/br_multicast.c: In function 'br_multicast_find_port': net/bridge/br_multicast.c:1818:21: warning: unused variable 'br' [-Wunused-variable] 1818 | struct net_bridge *br = mp->br; | ^~ It happens due to bridge's mlock_dereference() when lockdep isn't defined. Silence the warning by annotating the variable as __maybe_unused. Fixes: 0436862e417e ("net: bridge: mcast: support for IGMPv3/MLDv2 ALLOW_NEW_SOURCES report") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/sys_ni.c')
0 files changed, 0 insertions, 0 deletions