]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Jul 2022 10:15:31 +0000 (12:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Jul 2022 10:15:31 +0000 (12:15 +0200)
added patches:
arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch

queue-4.14/arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch [new file with mode: 0644]
queue-4.14/series

diff --git a/queue-4.14/arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch b/queue-4.14/arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch
new file mode 100644 (file)
index 0000000..c0f0b41
--- /dev/null
@@ -0,0 +1,41 @@
+From gregkh@linuxfoundation.org  Sun Jul 31 12:13:26 2022
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Sun, 31 Jul 2022 12:05:51 +0200
+Subject: ARM: crypto: comment out gcc warning that breaks clang builds
+To: stable@vger.kernel.org
+Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Jason A. Donenfeld" <Jason@zx2c4.com>, "Justin M. Forbes" <jforbes@fedoraproject.org>, Ard Biesheuvel <ardb@kernel.org>, Arnd Bergmann <arnd@kernel.org>, Nicolas Pitre <nico@linaro.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>
+Message-ID: <20220731100551.3679874-1-gregkh@linuxfoundation.org>
+
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+The gcc build warning prevents all clang-built kernels from working
+properly, so comment it out to fix the build.
+
+This is a -stable kernel only patch for now, it will be resolved
+differently in mainline releases in the future.
+
+Cc: "Jason A. Donenfeld" <Jason@zx2c4.com>
+Cc: "Justin M. Forbes" <jforbes@fedoraproject.org>
+Cc: Ard Biesheuvel <ardb@kernel.org>
+Cc: Arnd Bergmann <arnd@kernel.org>
+Cc: Nicolas Pitre <nico@linaro.org>
+Cc: Nathan Chancellor <nathan@kernel.org>
+Cc: Nick Desaulniers <ndesaulniers@google.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ arch/arm/lib/xor-neon.c |    3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- a/arch/arm/lib/xor-neon.c
++++ b/arch/arm/lib/xor-neon.c
+@@ -29,8 +29,9 @@ MODULE_LICENSE("GPL");
+  * While older versions of GCC do not generate incorrect code, they fail to
+  * recognize the parallel nature of these functions, and emit plain ARM code,
+  * which is known to be slower than the optimized ARM code in asm-arm/xor.h.
++ *
++ * #warning This code requires at least version 4.6 of GCC
+  */
+-#warning This code requires at least version 4.6 of GCC
+ #endif
+ #pragma GCC diagnostic ignored "-Wunused-variable"
index 285523ddc1529bbb21c410330fd0193833a43cf4..2bfb44e6ebf5ba1fd0f9949455f5d4d20cef37ef 100644 (file)
@@ -5,3 +5,4 @@ scsi-ufs-host-hold-reference-returned-by-of_parse_phandle.patch
 net-ping6-fix-memleak-in-ipv6_renew_options.patch
 net-sungem_phy-add-of_node_put-for-reference-returne.patch
 netfilter-nf_queue-do-not-allow-packet-truncation-be.patch
+arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch