summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-31 12:05:51 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-03 12:03:54 +0200
commit350fcb5e7bbb7d808ee0bc54f9c66aefc70f597a (patch)
tree7ae1e5934b13eca27c07629159e465944c62ec6f
parente796e1fe20ecaf6da419ef6a5841ba181bba7a0c (diff)
downloadlinux-stable-350fcb5e7bbb7d808ee0bc54f9c66aefc70f597a.tar.gz
linux-stable-350fcb5e7bbb7d808ee0bc54f9c66aefc70f597a.tar.bz2
linux-stable-350fcb5e7bbb7d808ee0bc54f9c66aefc70f597a.zip
ARM: crypto: comment out gcc warning that breaks clang builds
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> Acked-by: Arnd Bergmann <arnd@arndb.de> 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>
-rw-r--r--arch/arm/lib/xor-neon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/lib/xor-neon.c b/arch/arm/lib/xor-neon.c
index b99dd8e1c93f..7ba6cf826162 100644
--- 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"