Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_PCBC-related crypto to convert them into pluggable interface.
Signed-off-by: Jay Wang <[email protected]> --- crypto/Makefile | 2 +- crypto/pcbc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/Makefile b/crypto/Makefile index dfcfcd0601dd..6515459115d8 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -90,7 +90,7 @@ CFLAGS_wp512.o := $(call cc-option,-fno-schedule-insns) # https://gcc.gnu.org/b 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 +crypto-objs-$(CONFIG_CRYPTO_PCBC) += pcbc.o obj-$(CONFIG_CRYPTO_CTS) += cts.o obj-$(CONFIG_CRYPTO_LRW) += lrw.o obj-$(CONFIG_CRYPTO_XTS) += xts.o diff --git a/crypto/pcbc.c b/crypto/pcbc.c index d092717ea4fc..a0f3e16f049f 100644 --- a/crypto/pcbc.c +++ b/crypto/pcbc.c @@ -186,8 +186,8 @@ static void __exit crypto_pcbc_module_exit(void) crypto_unregister_template(&crypto_pcbc_tmpl); } -module_init(crypto_pcbc_module_init); -module_exit(crypto_pcbc_module_exit); +crypto_module_init(crypto_pcbc_module_init); +crypto_module_exit(crypto_pcbc_module_exit); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("PCBC block cipher mode of operation"); -- 2.47.3
