batman-adv: update to version 2022.3
authorSven Eckelmann <sven@narfation.org>
Thu, 10 Nov 2022 20:14:42 +0000 (21:14 +0100)
committerSven Eckelmann <sven@narfation.org>
Thu, 10 Nov 2022 20:44:20 +0000 (21:44 +0100)
* support latest kernels (4.9 - 6.1)
* coding style cleanups and refactoring
* bugs squashed:

  - limit the minimum MTU of hard-interface to avoid
    "Forced to purge local tt entries" errors

Signed-off-by: Sven Eckelmann <sven@narfation.org>
batman-adv/Makefile
batman-adv/patches/0004-Revert-batman-adv-Migrate-to-linux-container_of.h.patch
batman-adv/src/compat-hacks.h

index 8b9617743cffefbf17b28d15e248c7ea0c2d8975..1ef5706973d89f8493279caf072e10827f189175 100644 (file)
@@ -3,12 +3,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=batman-adv
-PKG_VERSION:=2022.2
+PKG_VERSION:=2022.3
 PKG_RELEASE:=$(AUTORELEASE)
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
-PKG_HASH:=8aca27c6f168b137a7ed7031d58169396c1a97f958c2ea95b9c30a9b92576fe0
+PKG_HASH:=218ffb534fead1c9b5b0d90ec1b2fba688209cdf00e861bece1cbf469fe69953
 PKG_EXTMOD_SUBDIRS:=net/batman-adv
 
 PKG_MAINTAINER:=Simon Wunderlich <sw@simonwunderlich.de>
index a217ba6aaefbcf3c18b8c6d1ab619feb90efe1f0..fbf1ef6a32620f12114b022cd5548ca1b3bab4ec 100644 (file)
@@ -117,11 +117,12 @@ This reverts commit 043ae5634bdfd4c4dd8b95a22890752495080bb5.
  #include <linux/gfp.h>
 --- a/net/batman-adv/hard-interface.c
 +++ b/net/batman-adv/hard-interface.c
-@@ -9,11 +9,11 @@
+@@ -9,12 +9,12 @@
  
  #include <linux/atomic.h>
  #include <linux/byteorder/generic.h>
 -#include <linux/container_of.h>
+ #include <linux/errno.h>
  #include <linux/gfp.h>
  #include <linux/if.h>
  #include <linux/if_arp.h>
index 69389558359ff7a9d54314245817f3da40bb0422..495ea16d528d749a1c225b3a66273065f8c34dda 100644 (file)
@@ -74,6 +74,14 @@ static inline int batadv_netif_rx(struct sk_buff *skb)
 
 #endif /* LINUX_VERSION_IS_LESS(5, 18, 0) */
 
+#if LINUX_VERSION_IS_LESS(6, 0, 0)
+
+#define __vstring(item, fmt, ap) __dynamic_array(char, item, 256)
+#define __assign_vstr(dst, fmt, va) \
+       WARN_ON_ONCE(vsnprintf(__get_dynamic_array(dst), 256, fmt, *va) >= 256)
+
+#endif /* LINUX_VERSION_IS_LESS(6, 0, 0) */
+
 /* <DECLARE_EWMA> */
 
 #include <linux/version.h>