[lkml]   [2022]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 5.10 47/65] ARM: crypto: comment out gcc warning that breaks clang builds
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 <>
Acked-by: 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

#pragma GCC diagnostic ignored "-Wunused-variable"

 \ /
  Last update: 2022-08-01 13:57    [W:1.593 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site