Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_BLAKE2B-related crypto to convert them into pluggable interface.
Signed-off-by: Jay Wang <[email protected]> --- crypto/Makefile | 2 +- crypto/blake2b.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/Makefile b/crypto/Makefile index 0a0190292dd0..dfcfcd0601dd 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -87,7 +87,7 @@ crypto-objs-$(CONFIG_CRYPTO_SM3_GENERIC) += sm3_generic.o crypto-objs-$(CONFIG_CRYPTO_STREEBOG) += streebog_generic.o crypto-objs-$(CONFIG_CRYPTO_WP512) += wp512.o CFLAGS_wp512.o := $(call cc-option,-fno-schedule-insns) # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79149 -obj-$(CONFIG_CRYPTO_BLAKE2B) += blake2b.o +crypto-objs-$(CONFIG_CRYPTO_BLAKE2B) += blake2b.o crypto-objs-$(CONFIG_CRYPTO_ECB) += ecb.o crypto-objs-$(CONFIG_CRYPTO_CBC) += cbc.o obj-$(CONFIG_CRYPTO_PCBC) += pcbc.o diff --git a/crypto/blake2b.c b/crypto/blake2b.c index 67a6dae43a54..74a2706aa7be 100644 --- a/crypto/blake2b.c +++ b/crypto/blake2b.c @@ -90,13 +90,13 @@ static int __init crypto_blake2b_mod_init(void) { return crypto_register_shashes(algs, ARRAY_SIZE(algs)); } -module_init(crypto_blake2b_mod_init); +crypto_module_init(crypto_blake2b_mod_init); static void __exit crypto_blake2b_mod_exit(void) { crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); } -module_exit(crypto_blake2b_mod_exit); +crypto_module_exit(crypto_blake2b_mod_exit); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Crypto API support for BLAKE2b"); -- 2.47.3
