From 51f8d575379fab659eeb508152bcdf46253abf73 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sun, 31 Jul 2022 12:15:42 +0200 Subject: [PATCH] 5.4-stable patches added patches: arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch --- ...gcc-warning-that-breaks-clang-builds.patch | 41 +++++++++++++++++++ queue-5.4/series | 1 + 2 files changed, 42 insertions(+) create mode 100644 queue-5.4/arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch diff --git a/queue-5.4/arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch b/queue-5.4/arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch new file mode 100644 index 00000000000..523a212178b --- /dev/null +++ b/queue-5.4/arm-crypto-comment-out-gcc-warning-that-breaks-clang-builds.patch @@ -0,0 +1,41 @@ +From gregkh@linuxfoundation.org Sun Jul 31 12:13:26 2022 +From: Greg Kroah-Hartman +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 , "Jason A. Donenfeld" , "Justin M. Forbes" , Ard Biesheuvel , Arnd Bergmann , Nicolas Pitre , Nathan Chancellor , Nick Desaulniers +Message-ID: <20220731100551.3679874-1-gregkh@linuxfoundation.org> + +From: Greg Kroah-Hartman + +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" +Cc: "Justin M. Forbes" +Cc: Ard Biesheuvel +Cc: Arnd Bergmann +Cc: Nicolas Pitre +Cc: Nathan Chancellor +Cc: Nick Desaulniers +Signed-off-by: Greg Kroah-Hartman +--- + 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" diff --git a/queue-5.4/series b/queue-5.4/series index fd3bdc2db92..889de1e6a15 100644 --- a/queue-5.4/series +++ b/queue-5.4/series @@ -29,3 +29,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 -- 2.47.3