Apply Crypto API wrappers to the exported crypto symbol in
CONFIG_CRYPTO_SM4_ARM64_CE_CCM-related crypto to convert them into pluggable
interface.

Signed-off-by: Jay Wang <[email protected]>
---
 arch/arm64/crypto/Makefile          | 2 +-
 arch/arm64/crypto/sm4-ce-ccm-glue.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/crypto/Makefile b/arch/arm64/crypto/Makefile
index 59e94f714ef9..f17d35591ab2 100644
--- a/arch/arm64/crypto/Makefile
+++ b/arch/arm64/crypto/Makefile
@@ -17,7 +17,7 @@ sm4-ce-cipher-y := sm4-ce-cipher-glue.o sm4-ce-cipher-core.o
 crypto-objs-$(CONFIG_CRYPTO_SM4_ARM64_CE_BLK) += sm4-ce.o
 sm4-ce-y := sm4-ce-glue.o sm4-ce-core.o
 
-obj-$(CONFIG_CRYPTO_SM4_ARM64_CE_CCM) += sm4-ce-ccm.o
+crypto-objs-$(CONFIG_CRYPTO_SM4_ARM64_CE_CCM) += sm4-ce-ccm.o
 sm4-ce-ccm-y := sm4-ce-ccm-glue.o sm4-ce-ccm-core.o
 
 obj-$(CONFIG_CRYPTO_SM4_ARM64_CE_GCM) += sm4-ce-gcm.o
diff --git a/arch/arm64/crypto/sm4-ce-ccm-glue.c 
b/arch/arm64/crypto/sm4-ce-ccm-glue.c
index 332f02167a96..96e54d9c45fd 100644
--- a/arch/arm64/crypto/sm4-ce-ccm-glue.c
+++ b/arch/arm64/crypto/sm4-ce-ccm-glue.c
@@ -276,8 +276,8 @@ static void __exit sm4_ce_ccm_exit(void)
        crypto_unregister_aead(&sm4_ccm_alg);
 }
 
-module_cpu_feature_match(SM4, sm4_ce_ccm_init);
-module_exit(sm4_ce_ccm_exit);
+crypto_module_cpu_feature_match(SM4, sm4_ce_ccm_init);
+crypto_module_exit(sm4_ce_ccm_exit);
 
 MODULE_DESCRIPTION("Synchronous SM4 in CCM mode using ARMv8 Crypto 
Extensions");
 MODULE_ALIAS_CRYPTO("ccm(sm4)");
-- 
2.47.3


Reply via email to