From: Vegard Nossum <[email protected]> Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_GHASH-related crypto to convert them into pluggable interface.
Signed-off-by: Vegard Nossum <[email protected]> [add ghash-generic.o into crypto-objs-y; revise commit message] Signed-off-by: Jay Wang <[email protected]> --- crypto/Makefile | 2 +- crypto/ghash-generic.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/Makefile b/crypto/Makefile index 1d5ee8dc24d9..d58b5e2b5b43 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -171,7 +171,7 @@ UBSAN_SANITIZE_jitterentropy.o = n jitterentropy_rng-y := jitterentropy.o jitterentropy-kcapi.o obj-$(CONFIG_CRYPTO_JITTERENTROPY_TESTINTERFACE) += jitterentropy-testing.o obj-$(CONFIG_CRYPTO_BENCHMARK) += tcrypt.o -obj-$(CONFIG_CRYPTO_GHASH) += ghash-generic.o +crypto-objs-$(CONFIG_CRYPTO_GHASH) += ghash-generic.o obj-$(CONFIG_CRYPTO_USER_API) += af_alg.o obj-$(CONFIG_CRYPTO_USER_API_HASH) += algif_hash.o obj-$(CONFIG_CRYPTO_USER_API_SKCIPHER) += algif_skcipher.o diff --git a/crypto/ghash-generic.c b/crypto/ghash-generic.c index e5803c249c12..37e98aa546c7 100644 --- a/crypto/ghash-generic.c +++ b/crypto/ghash-generic.c @@ -153,8 +153,8 @@ static void __exit ghash_mod_exit(void) crypto_unregister_shash(&ghash_alg); } -module_init(ghash_mod_init); -module_exit(ghash_mod_exit); +crypto_module_init(ghash_mod_init); +crypto_module_exit(ghash_mod_exit); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("GHASH hash function"); -- 2.47.3
