summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2021-04-04 03:09:16 +0000
committerArmin Kuster <akuster808@gmail.com>2021-04-07 08:55:15 -0700
commit430ef96fe65f62d8da995f446d5b9b093544f031 (patch)
tree1998ff35f6eed2a66a8a5e492184c22c743e5dd7
parent76174f46545ee71e7067c71e5a2a19f29038a588 (diff)
downloadmeta-openembedded-430ef96fe65f62d8da995f446d5b9b093544f031.tar.gz
wireguard: fix build issue with updated 5.4 kernel
error: static declaration of 'icmp_ndo_send' follows non-static declaration | 959 | static inline void icmp_ndo_send(struct sk_buff *skb_in, int type, int code, __be32 info) | | ^~~~~~~~~~~~~ Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-networking/recipes-kernel/wireguard/files/0001-compat-icmp_ndo_send-functions-were-backported-exten.patch32
-rw-r--r--meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200401.bb3
2 files changed, 34 insertions, 1 deletions
diff --git a/meta-networking/recipes-kernel/wireguard/files/0001-compat-icmp_ndo_send-functions-were-backported-exten.patch b/meta-networking/recipes-kernel/wireguard/files/0001-compat-icmp_ndo_send-functions-were-backported-exten.patch
new file mode 100644
index 0000000000..f01cfe4e1c
--- /dev/null
+++ b/meta-networking/recipes-kernel/wireguard/files/0001-compat-icmp_ndo_send-functions-were-backported-exten.patch
@@ -0,0 +1,32 @@
1From 122f06bfd8fc7b06a0899fa9adc4ce8e06900d98 Mon Sep 17 00:00:00 2001
2From: "Jason A. Donenfeld" <Jason@zx2c4.com>
3Date: Sun, 7 Mar 2021 08:14:33 -0700
4Subject: [PATCH] compat: icmp_ndo_send functions were backported extensively
5
6Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
7
8Upstream-Status: Backport
9
10Fixes build with 5.4.103 update.
11/include/linux/icmpv6.h:56:6: note: previous declaration of 'icmpv6_ndo_send' was here
12| 56 | void icmpv6_ndo_send(struct sk_buff *skb_in, u8 type, u8 code, __u32 info);
13
14Signed-of-by: Armin Kuster <akuster808@gmail.com>
15
16---
17 src/compat/compat.h | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20Index: src/compat/compat.h
21===================================================================
22--- src.orig/compat/compat.h
23+++ src/compat/compat.h
24@@ -946,7 +946,7 @@ static inline int skb_ensure_writable(st
25 }
26 #endif
27
28-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
29+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)) || (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 102) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0)) || (LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 178) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)) || (LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 223) && LINUX_VERSION_CODE > KERNEL_VERSION(4, 10, 0)) || LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 259) || defined(ISRHEL8) || defined(ISUBUNTU1804)
30 #if IS_ENABLED(CONFIG_NF_NAT)
31 #include <linux/ip.h>
32 #include <linux/icmpv6.h>
diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200401.bb b/meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200401.bb
index e8891c4428..6ed988bafa 100644
--- a/meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200401.bb
+++ b/meta-networking/recipes-kernel/wireguard/wireguard-module_1.0.20200401.bb
@@ -3,7 +3,8 @@ require wireguard.inc
3SRCREV = "43f57dac7b8305024f83addc533c9eede6509129" 3SRCREV = "43f57dac7b8305024f83addc533c9eede6509129"
4 4
5SRC_URI = "git://git.zx2c4.com/wireguard-linux-compat \ 5SRC_URI = "git://git.zx2c4.com/wireguard-linux-compat \
6 file://0001-compat-SYM_FUNC_-START-END-were-backported-to-5.4.patch" 6 file://0001-compat-SYM_FUNC_-START-END-were-backported-to-5.4.patch \
7 file://0001-compat-icmp_ndo_send-functions-were-backported-exten.patch "
7 8
8inherit module kernel-module-split 9inherit module kernel-module-split
9 10