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

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

diff --git a/queue-5.15/arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch b/queue-5.15/arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch
new file mode 100644 (file)
index 0000000..523a212
--- /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
+@@ -26,8 +26,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 854edccf239bf91b01fd485ea6d6cffa86eff262..442a7248b6b282214cbc180ef16b81f1f1191425 100644 (file)
@@ -59,3 +59,4 @@ virtio-net-fix-the-race-between-refill-work-and-clos.patch
 perf-symbol-correct-address-for-bss-symbols.patch
 sfc-disable-softirqs-for-ptp-tx.patch
 sctp-leave-the-err-path-free-in-sctp_stream_init-to-.patch
+arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch