batman-adv: update to version 2024.4 1091/head
authorSven Eckelmann <sven@narfation.org>
Tue, 10 Dec 2024 21:40:19 +0000 (22:40 +0100)
committerSven Eckelmann <sven@narfation.org>
Tue, 10 Dec 2024 21:41:22 +0000 (22:41 +0100)
* support latest kernels (5.4 - 6.13)
* coding style cleanups and refactoring
* bugs squashed:
  - prevent transmission of uninitialized memory for TT TVLVs
  - avoid stuck, overfull translation table changes list

Signed-off-by: Sven Eckelmann <sven@narfation.org>
batman-adv/Makefile
batman-adv/patches/0003-Revert-batman-adv-move-asm-unaligned.h-to-linux-unal.patch [new file with mode: 0644]
batman-adv/src/compat-hacks.h

index d38ec6d4c426ebaf004833f6d4ffd09e417fe834..3c0544dc0b4c5b1345e15d8e4732686f141a63f8 100644 (file)
@@ -3,12 +3,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=batman-adv
-PKG_VERSION:=2024.3
-PKG_RELEASE:=2
+PKG_VERSION:=2024.4
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
-PKG_HASH:=b96817ed1f4f48917c32550a84faad8c87ecf53aa6f6f46cc26554b999b57ff3
+PKG_HASH:=a554df6fc7abccc6b243f56ea7b184486c95ea986db1133f87aafe237da92f21
 PKG_EXTMOD_SUBDIRS:=net/batman-adv
 
 PKG_MAINTAINER:=Simon Wunderlich <sw@simonwunderlich.de>
diff --git a/batman-adv/patches/0003-Revert-batman-adv-move-asm-unaligned.h-to-linux-unal.patch b/batman-adv/patches/0003-Revert-batman-adv-move-asm-unaligned.h-to-linux-unal.patch
new file mode 100644 (file)
index 0000000..d072f53
--- /dev/null
@@ -0,0 +1,42 @@
+From: Sven Eckelmann <sven@narfation.org>
+Date: Tue, 10 Dec 2024 22:31:33 +0100
+Subject: Revert "batman-adv: move asm/unaligned.h to linux/unaligned.h"
+
+This header is only available with Linux 6.12
+
+This reverts commit ee60832ebec47a023d634b06f9434103ec090aed.
+
+--- a/compat-include/linux/unaligned.h
++++ /dev/null
+@@ -1,20 +0,0 @@
+-/* SPDX-License-Identifier: GPL-2.0 */
+-/* Copyright (C) B.A.T.M.A.N. contributors:
+- *
+- * Marek Lindner, Simon Wunderlich
+- *
+- * This file contains macros for maintaining compatibility with older versions
+- * of the Linux kernel.
+- */
+-
+-#ifndef _NET_BATMAN_ADV_COMPAT_LINUX_UNALIGNED_H_
+-#define _NET_BATMAN_ADV_COMPAT_LINUX_UNALIGNED_H_
+-
+-#include <linux/version.h>
+-#if LINUX_VERSION_IS_GEQ(6, 12, 0)
+-#include_next <linux/unaligned.h>
+-#else
+-#include <asm/unaligned.h>
+-#endif
+-
+-#endif /* _NET_BATMAN_ADV_COMPAT_LINUX_UNALIGNED_H_ */
+--- a/net/batman-adv/distributed-arp-table.c
++++ b/net/batman-adv/distributed-arp-table.c
+@@ -7,7 +7,7 @@
+ #include "distributed-arp-table.h"
+ #include "main.h"
+-#include <linux/unaligned.h>
++#include <asm/unaligned.h>
+ #include <linux/atomic.h>
+ #include <linux/bitops.h>
+ #include <linux/byteorder/generic.h>
index 8f659569dbb08e63359dbec42b1bbb3e7135111b..5d536a8d76921cdfb9f0d06028799e1953069d58 100644 (file)
@@ -5,6 +5,12 @@
 #include <linux/version.h>     /* LINUX_VERSION_CODE */
 #include <linux/types.h>
 
+#if LINUX_VERSION_IS_LESS(6, 10, 0)
+
+#define __counted_by_be(member)
+
+#endif /* LINUX_VERSION_IS_LESS(6, 10, 0) */
+
 /* <DECLARE_EWMA> */
 
 #include <linux/version.h>