kernel: 5.4: import wireguard backport
[openwrt/staging/mkresin.git] / target / linux / generic / backport-5.4 / 080-wireguard-0103-wireguard-selftests-use-newer-iproute2-for-gcc-10.patch
1 From 8c0f0162352081c875a7aa86d897e2bb50f6e46d Mon Sep 17 00:00:00 2001
2 From: "Jason A. Donenfeld" <Jason@zx2c4.com>
3 Date: Tue, 19 May 2020 22:49:27 -0600
4 Subject: [PATCH 103/124] wireguard: selftests: use newer iproute2 for gcc-10
5
6 commit ee3c1aa3f34b7842c1557cfe5d8c3f7b8c692de8 upstream.
7
8 gcc-10 switched to defaulting to -fno-common, which broke iproute2-5.4.
9 This was fixed in iproute-5.6, so switch to that. Because we're after a
10 stable testing surface, we generally don't like to bump these
11 unnecessarily, but in this case, being able to actually build is a basic
12 necessity.
13
14 Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
15 Signed-off-by: David S. Miller <davem@davemloft.net>
16 Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
17 ---
18 tools/testing/selftests/wireguard/qemu/Makefile | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/tools/testing/selftests/wireguard/qemu/Makefile
22 +++ b/tools/testing/selftests/wireguard/qemu/Makefile
23 @@ -44,7 +44,7 @@ endef
24 $(eval $(call tar_download,MUSL,musl,1.1.24,.tar.gz,https://www.musl-libc.org/releases/,1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3))
25 $(eval $(call tar_download,IPERF,iperf,3.7,.tar.gz,https://downloads.es.net/pub/iperf/,d846040224317caf2f75c843d309a950a7db23f9b44b94688ccbe557d6d1710c))
26 $(eval $(call tar_download,BASH,bash,5.0,.tar.gz,https://ftp.gnu.org/gnu/bash/,b4a80f2ac66170b2913efbfb9f2594f1f76c7b1afd11f799e22035d63077fb4d))
27 -$(eval $(call tar_download,IPROUTE2,iproute2,5.4.0,.tar.xz,https://www.kernel.org/pub/linux/utils/net/iproute2/,fe97aa60a0d4c5ac830be18937e18dc3400ca713a33a89ad896ff1e3d46086ae))
28 +$(eval $(call tar_download,IPROUTE2,iproute2,5.6.0,.tar.xz,https://www.kernel.org/pub/linux/utils/net/iproute2/,1b5b0e25ce6e23da7526ea1da044e814ad85ba761b10dd29c2b027c056b04692))
29 $(eval $(call tar_download,IPTABLES,iptables,1.8.4,.tar.bz2,https://www.netfilter.org/projects/iptables/files/,993a3a5490a544c2cbf2ef15cf7e7ed21af1845baf228318d5c36ef8827e157c))
30 $(eval $(call tar_download,NMAP,nmap,7.80,.tar.bz2,https://nmap.org/dist/,fcfa5a0e42099e12e4bf7a68ebe6fde05553383a682e816a7ec9256ab4773faa))
31 $(eval $(call tar_download,IPUTILS,iputils,s20190709,.tar.gz,https://github.com/iputils/iputils/archive/s20190709.tar.gz/#,a15720dd741d7538dd2645f9f516d193636ae4300ff7dbc8bfca757bf166490a))