[PATCH 02/12] arm64: crypto: convert exported crypto symbol into pluggable interface for CONFIG_CRYPTO_SM3_ARM64_CE crypto
Jay Wang
wanjay at amazon.com
Wed Feb 11 19:21:02 PST 2026
Apply Crypto API wrappers to the exported crypto symbol in
CONFIG_CRYPTO_SM3_ARM64_CE-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-ce-glue.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/crypto/Makefile b/arch/arm64/crypto/Makefile
index 3dcde982c0cc..43cac8d5738f 100644
--- a/arch/arm64/crypto/Makefile
+++ b/arch/arm64/crypto/Makefile
@@ -8,7 +8,7 @@
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
+crypto-objs-$(CONFIG_CRYPTO_SM3_ARM64_CE) += sm3-ce.o
sm3-ce-y := sm3-ce-glue.o sm3-ce-core.o
obj-$(CONFIG_CRYPTO_SM4_ARM64_CE) += sm4-ce-cipher.o
diff --git a/arch/arm64/crypto/sm3-ce-glue.c b/arch/arm64/crypto/sm3-ce-glue.c
index 24c1fcfae072..01d13f44c17e 100644
--- a/arch/arm64/crypto/sm3-ce-glue.c
+++ b/arch/arm64/crypto/sm3-ce-glue.c
@@ -66,5 +66,5 @@ static void __exit sm3_ce_mod_fini(void)
crypto_unregister_shash(&sm3_alg);
}
-module_cpu_feature_match(SM3, sm3_ce_mod_init);
-module_exit(sm3_ce_mod_fini);
+crypto_module_cpu_feature_match(SM3, sm3_ce_mod_init);
+crypto_module_exit(sm3_ce_mod_fini);
--
2.47.3
More information about the linux-arm-kernel
mailing list