batman-adv: Fix build against kernel 5.10 721/head
authorSven Eckelmann <sven@narfation.org>
Sun, 22 Aug 2021 06:56:28 +0000 (08:56 +0200)
committerSven Eckelmann <sven@narfation.org>
Sun, 22 Aug 2021 06:56:28 +0000 (08:56 +0200)
The linux kernel 5.10 needs an explicit include of linux/if_bridge.h to
define br_multicast_list_adjacent and the struct br_ip_list.

Reported-by: Rosen Penev <rosenp@gmail.com>
Fixes: 47cd2a4b627d ("batman-adv: update to version 2021.2")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
batman-adv/src/compat-hacks.h

index 21c13f7c8fc992e9065976f878d6e407d848ebae..f949f4e198e711385637228780db26329ab1b86d 100644 (file)
@@ -51,6 +51,7 @@ inline void __batadv_br_ip_list_check(void)
 
 #if LINUX_VERSION_IS_LESS(5, 14, 0)
 
+#include <linux/if_bridge.h>
 #include <net/addrconf.h>
 
 #if IS_ENABLED(CONFIG_IPV6)