From: Vegard Nossum <[email protected]> Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_ECB-related crypto to convert them into pluggable interface.
Signed-off-by: Vegard Nossum <[email protected]> [add ecb.o into crypto-objs-y; revise commit message] Signed-off-by: Jay Wang <[email protected]> --- crypto/Makefile | 2 +- crypto/ecb.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/Makefile b/crypto/Makefile index 251b20fad9c2..11a6714dee42 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -88,7 +88,7 @@ obj-$(CONFIG_CRYPTO_STREEBOG) += streebog_generic.o obj-$(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 -obj-$(CONFIG_CRYPTO_ECB) += ecb.o +crypto-objs-$(CONFIG_CRYPTO_ECB) += ecb.o obj-$(CONFIG_CRYPTO_CBC) += cbc.o obj-$(CONFIG_CRYPTO_PCBC) += pcbc.o obj-$(CONFIG_CRYPTO_CTS) += cts.o diff --git a/crypto/ecb.c b/crypto/ecb.c index cd1b20456dad..20127b20f483 100644 --- a/crypto/ecb.c +++ b/crypto/ecb.c @@ -219,8 +219,8 @@ static void __exit crypto_ecb_module_exit(void) crypto_unregister_template(&crypto_ecb_tmpl); } -module_init(crypto_ecb_module_init); -module_exit(crypto_ecb_module_exit); +crypto_module_init(crypto_ecb_module_init); +crypto_module_exit(crypto_ecb_module_exit); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("ECB block cipher mode of operation"); -- 2.47.3
