From: Vegard Nossum <[email protected]> Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_PCRYPT-related crypto to convert them into pluggable interface.
Signed-off-by: Vegard Nossum <[email protected]> [add pcrypt.o into crypto-objs-y; revise commit message] Signed-off-by: Jay Wang <[email protected]> --- crypto/Makefile | 2 +- crypto/pcrypt.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/Makefile b/crypto/Makefile index cb1761303151..b371a8788d39 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -124,7 +124,7 @@ endif # Enable <arm_neon.h> CFLAGS_aegis128-neon-inner.o += -isystem $(shell $(CC) -print-file-name=include) -obj-$(CONFIG_CRYPTO_PCRYPT) += pcrypt.o +crypto-objs-$(CONFIG_CRYPTO_PCRYPT) += pcrypt.o obj-$(CONFIG_CRYPTO_CRYPTD) += cryptd.o obj-$(CONFIG_CRYPTO_DES) += des_generic.o obj-$(CONFIG_CRYPTO_FCRYPT) += fcrypt.o diff --git a/crypto/pcrypt.c b/crypto/pcrypt.c index c3a9d4f2995c..b9cf7df64c4e 100644 --- a/crypto/pcrypt.c +++ b/crypto/pcrypt.c @@ -378,8 +378,8 @@ static void __exit pcrypt_exit(void) kset_unregister(pcrypt_kset); } -module_init(pcrypt_init); -module_exit(pcrypt_exit); +crypto_module_init(pcrypt_init); +crypto_module_exit(pcrypt_exit); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Steffen Klassert <[email protected]>"); -- 2.47.3
