Thread (3 messages) 3 messages, 3 authors, 2015-07-20
STALE4005d

[PATCH net-next] bridge: mcast: fix br_multicast_dev_del warn when igmp snooping is not defined

From: Nikolay Aleksandrov <razor@blackwall.org>
Date: 2015-07-20 21:03:45
Also in: bridge
Subsystem: ethernet bridge, networking [general], the rest · Maintainers: Nikolay Aleksandrov, Ido Schimmel, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

Fix:
net/bridge/br_if.c: In function 'br_dev_delete':
quoted
net/bridge/br_if.c:284:2: error: implicit declaration of function
'br_multicast_dev_del' [-Werror=implicit-function-declaration]
     br_multicast_dev_del(br);
     ^
   cc1: some warnings being treated as errors

when igmp snooping is not defined.

Signed-off-by: Nikolay Aleksandrov <redacted>
---
Apologies for the mess.

 net/bridge/br_private.h | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
index 2bada2279721..3ad1290528af 100644
--- a/net/bridge/br_private.h
+++ b/net/bridge/br_private.h
@@ -566,6 +566,10 @@ static inline void br_multicast_stop(struct net_bridge *br)
 {
 }
 
+static inline void br_multicast_dev_del(struct net_bridge *br)
+{
+}
+
 static inline void br_multicast_deliver(struct net_bridge_mdb_entry *mdst,
 					struct sk_buff *skb)
 {
-- 
1.9.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help