batman-adv: compat: fix multicast compat code for < 2.6.35
Commit Message
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")
Signed-off-by: Linus Lüssing <linus.luessing@web.de>
---
compat.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -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!