Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_GHASH_ARM64_CE-related crypto to convert them into pluggable interface.
Signed-off-by: Jay Wang <[email protected]> --- arch/arm64/crypto/Makefile | 2 +- arch/arm64/crypto/ghash-ce-glue.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/crypto/Makefile b/arch/arm64/crypto/Makefile index 48042cf5bb13..55692fc8771d 100644 --- a/arch/arm64/crypto/Makefile +++ b/arch/arm64/crypto/Makefile @@ -26,7 +26,7 @@ sm4-ce-gcm-y := sm4-ce-gcm-glue.o sm4-ce-gcm-core.o crypto-objs-$(CONFIG_CRYPTO_SM4_ARM64_NEON_BLK) += sm4-neon.o sm4-neon-y := sm4-neon-glue.o sm4-neon-core.o -obj-$(CONFIG_CRYPTO_GHASH_ARM64_CE) += ghash-ce.o +crypto-objs-$(CONFIG_CRYPTO_GHASH_ARM64_CE) += ghash-ce.o ghash-ce-y := ghash-ce-glue.o ghash-ce-core.o obj-$(CONFIG_CRYPTO_AES_ARM64_CE_CCM) += aes-ce-ccm.o diff --git a/arch/arm64/crypto/ghash-ce-glue.c b/arch/arm64/crypto/ghash-ce-glue.c index 63bb9e062251..ad17a1621df7 100644 --- a/arch/arm64/crypto/ghash-ce-glue.c +++ b/arch/arm64/crypto/ghash-ce-glue.c @@ -528,5 +528,5 @@ static const struct cpu_feature __maybe_unused ghash_cpu_feature[] = { }; MODULE_DEVICE_TABLE(cpu, ghash_cpu_feature); -module_init(ghash_ce_mod_init); -module_exit(ghash_ce_mod_exit); +crypto_module_init(ghash_ce_mod_init); +crypto_module_exit(ghash_ce_mod_exit); -- 2.47.3
