Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_RMD160-related crypto to convert them into pluggable interface.
Signed-off-by: Jay Wang <[email protected]> --- crypto/Makefile | 2 +- crypto/rmd160.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/Makefile b/crypto/Makefile index 32f038ff47de..45f0ae639ccd 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -78,7 +78,7 @@ crypto-objs-$(CONFIG_CRYPTO_XCBC) += xcbc.o crypto-objs-$(CONFIG_CRYPTO_NULL) += crypto_null.o crypto-objs-$(CONFIG_CRYPTO_MD4) += md4.o crypto-objs-$(CONFIG_CRYPTO_MD5) += md5.o -obj-$(CONFIG_CRYPTO_RMD160) += rmd160.o +crypto-objs-$(CONFIG_CRYPTO_RMD160) += rmd160.o obj-$(CONFIG_CRYPTO_SHA1) += sha1.o crypto-objs-$(CONFIG_CRYPTO_SHA256) += sha256.o crypto-objs-$(CONFIG_CRYPTO_SHA512) += sha512.o diff --git a/crypto/rmd160.c b/crypto/rmd160.c index 9860b60c9be4..0d68e7b763d8 100644 --- a/crypto/rmd160.c +++ b/crypto/rmd160.c @@ -342,8 +342,8 @@ static void __exit rmd160_mod_fini(void) crypto_unregister_shash(&alg); } -module_init(rmd160_mod_init); -module_exit(rmd160_mod_fini); +crypto_module_init(rmd160_mod_init); +crypto_module_exit(rmd160_mod_fini); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Adrian-Ken Rueegsegger <[email protected]>"); -- 2.47.3
