Skip to contentSkip to conversation

batman-adv: compat: fix multicast compat code for < 2.6.35

PATCH New Linus Lüssing 1 participant 1 message Nov 11, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batman-adv: compat: fix multicast compat code for < 2.6.35

A typo resulted into the following build warning:

"In function 'batadv_mcast_mla_softif_get':
warning: assignment from incompatible pointer type"

This commit fixes it by using the correct name for the according struct.

Introduced by: a3f58139efedb96222dffdda89896c243fdff49e ("batman-adv: Multicast Listener Announcements via Translation Table")

---
 compat.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
compat.h +2 -2
index 186547b..c83ac2c 100644
@@ -103,8 +103,8 @@ static inline struct sk_buff *netdev_alloc_skb_ip_align(struct net_device *dev,
 
 #undef  netdev_for_each_mc_addr
 #define netdev_for_each_mc_addr(mclist, dev) \
-	for (mclist = (struct bat_dev_addr_list *)dev->mc_list; mclist; \
-	     mclist = (struct bat_dev_addr_list *)mclist->next)
+	for (mclist = (struct batadv_dev_addr_list *)dev->mc_list; mclist; \
+	     mclist = (struct batadv_dev_addr_list *)mclist->next)
 
 /* Note, that this breaks the usage of the normal 'struct netdev_hw_addr'
  * for kernels < 2.6.35 in batman-adv!
Signature · 1 line
1.7.10.4