From: Vegard Nossum <[email protected]> Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_CBC-related crypto to convert them into pluggable interface.
Signed-off-by: Vegard Nossum <[email protected]> [add cbc.o into crypto-objs-y; revise commit message] Signed-off-by: Jay Wang <[email protected]> --- crypto/Makefile | 2 +- crypto/cbc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/Makefile b/crypto/Makefile index 11a6714dee42..354ce7a46a0a 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -89,7 +89,7 @@ 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 crypto-objs-$(CONFIG_CRYPTO_ECB) += ecb.o -obj-$(CONFIG_CRYPTO_CBC) += cbc.o +crypto-objs-$(CONFIG_CRYPTO_CBC) += cbc.o obj-$(CONFIG_CRYPTO_PCBC) += pcbc.o obj-$(CONFIG_CRYPTO_CTS) += cts.o obj-$(CONFIG_CRYPTO_LRW) += lrw.o diff --git a/crypto/cbc.c b/crypto/cbc.c index ed3df6246765..03ee7008ab12 100644 --- a/crypto/cbc.c +++ b/crypto/cbc.c @@ -179,8 +179,8 @@ static void __exit crypto_cbc_module_exit(void) crypto_unregister_template(&crypto_cbc_tmpl); } -module_init(crypto_cbc_module_init); -module_exit(crypto_cbc_module_exit); +crypto_module_init(crypto_cbc_module_init); +crypto_module_exit(crypto_cbc_module_exit); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("CBC block cipher mode of operation"); -- 2.47.3
