mirror of
https://github.com/openwrt/routing.git
synced 2026-05-27 23:01:00 +04:00
Merge pull request #1174 from januszdziedzic/master
batman-adv: fix kmalloc_obj redefinition on Linux 6.18.31+
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=batman-adv
|
||||
PKG_VERSION:=2026.1
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
||||
|
||||
@@ -46,7 +46,8 @@ static inline u32 batadv_skb_crc32c(struct sk_buff *skb, int offset,
|
||||
|
||||
#endif /* LINUX_VERSION_IS_LESS(6, 16, 0) || !defined(CONFIG_NET_CRC32C) */
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(7, 0, 0)
|
||||
#if LINUX_VERSION_IS_LESS(7, 0, 0) && \
|
||||
!(LINUX_VERSION_IS_GEQ(6, 18, 33) && LINUX_VERSION_IS_LESS(6, 19, 0))
|
||||
|
||||
#define kzalloc_obj(P, GFP) \
|
||||
kzalloc(sizeof(P), GFP)
|
||||
|
||||
Reference in New Issue
Block a user