[PATCH 01/12] arm64: crypto: convert exported crypto symbol into pluggable interface for CONFIG_CRYPTO_SM3_NEON crypto
Jay Wang
wanjay at amazon.com
Wed Feb 11 19:21:01 PST 2026
Apply Crypto API wrappers to the exported crypto symbol in
CONFIG_CRYPTO_SM3_NEON-related crypto to convert them into pluggable
interface.
Signed-off-by: Jay Wang <wanjay at amazon.com>
---
arch/arm64/crypto/Makefile | 2 +-
arch/arm64/crypto/sm3-neon-glue.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/crypto/Makefile b/arch/arm64/crypto/Makefile
index 9f7106424d66..3dcde982c0cc 100644
--- a/arch/arm64/crypto/Makefile
+++ b/arch/arm64/crypto/Makefile
@@ -5,7 +5,7 @@
# Copyright (C) 2014 Linaro Ltd <ard.biesheuvel at linaro.org>
#
-obj-$(CONFIG_CRYPTO_SM3_NEON) += sm3-neon.o
+crypto-objs-$(CONFIG_CRYPTO_SM3_NEON) += sm3-neon.o
sm3-neon-y := sm3-neon-glue.o sm3-neon-core.o
obj-$(CONFIG_CRYPTO_SM3_ARM64_CE) += sm3-ce.o
diff --git a/arch/arm64/crypto/sm3-neon-glue.c b/arch/arm64/crypto/sm3-neon-glue.c
index 15f30cc24f32..d388e3adfad4 100644
--- a/arch/arm64/crypto/sm3-neon-glue.c
+++ b/arch/arm64/crypto/sm3-neon-glue.c
@@ -58,8 +58,8 @@ static void __exit sm3_neon_fini(void)
crypto_unregister_shash(&sm3_alg);
}
-module_init(sm3_neon_init);
-module_exit(sm3_neon_fini);
+crypto_module_init(sm3_neon_init);
+crypto_module_exit(sm3_neon_fini);
MODULE_DESCRIPTION("SM3 secure hash using NEON instructions");
MODULE_AUTHOR("Jussi Kivilinna <jussi.kivilinna at iki.fi>");
--
2.47.3
More information about the linux-arm-kernel
mailing list