[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250423162548.2072707-1-arnd@kernel.org>
Date: Wed, 23 Apr 2025 18:25:45 +0200
From: Arnd Bergmann <arnd@...nel.org>
To: Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
x86@...nel.org
Cc: Arnd Bergmann <arnd@...db.de>,
"H. Peter Anvin" <hpa@...or.com>,
Uros Bizjak <ubizjak@...il.com>,
Eric Biggers <ebiggers@...nel.org>,
linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] crypto: x86/sha256 - Include asm/fpu/api.h directly
From: Arnd Bergmann <arnd@...db.de>
This was previously included through another header, but now causes
a build failure in some configurations:
arch/x86/crypto/sha256_ssse3_glue.c:63:2: error: call to undeclared function 'kernel_fpu_begin'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
63 | kernel_fpu_begin();
| ^
arch/x86/crypto/sha256_ssse3_glue.c:65:2: error: call to undeclared function 'kernel_fpu_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
65 | kernel_fpu_end();
| ^
Include the header directly to make it build again.
Fixes: 8e7547473875 ("crypto: x86/sha256 - Use API partial block handling")
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
arch/x86/crypto/sha256_ssse3_glue.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/crypto/sha256_ssse3_glue.c b/arch/x86/crypto/sha256_ssse3_glue.c
index b3115e207a9f..42b0bb6c8caf 100644
--- a/arch/x86/crypto/sha256_ssse3_glue.c
+++ b/arch/x86/crypto/sha256_ssse3_glue.c
@@ -36,6 +36,8 @@
#include <linux/kernel.h>
#include <linux/module.h>
+#include <asm/fpu/api.h>
+
asmlinkage void sha256_transform_ssse3(struct crypto_sha256_state *state,
const u8 *data, int blocks);
--
2.39.5
Powered by blists - more mailing lists