From: Herbert Xu Date: Wed, 2 Feb 2022 06:46:48 +0000 (+1100) Subject: crypto: api - Move cryptomgr soft dependency into algapi X-Git-Tag: v6.1-rc5~1852^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6ce9c5831cae515d375a01b97ae1778689acf19;p=platform%2Fkernel%2Flinux-starfive.git crypto: api - Move cryptomgr soft dependency into algapi The soft dependency on cryptomgr is only needed in algapi because if algapi isn't present then no algorithms can be loaded. This also fixes the case where api is built-in but algapi is built as a module as the soft dependency would otherwise get lost. Fixes: 8ab23d547f65 ("crypto: api - Add softdep on cryptomgr") Reported-by: Jan Beulich Signed-off-by: Herbert Xu Tested-by: Jan Beulich Signed-off-by: Herbert Xu --- diff --git a/crypto/algapi.c b/crypto/algapi.c index a366cb3..76fdaa1 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c @@ -1324,3 +1324,4 @@ module_exit(crypto_algapi_exit); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Cryptographic algorithms API"); +MODULE_SOFTDEP("pre: cryptomgr"); diff --git a/crypto/api.c b/crypto/api.c index cf0869d..7ddfe94 100644 --- a/crypto/api.c +++ b/crypto/api.c @@ -643,4 +643,3 @@ EXPORT_SYMBOL_GPL(crypto_req_done); MODULE_DESCRIPTION("Cryptographic core API"); MODULE_LICENSE("GPL"); -MODULE_SOFTDEP("pre: cryptomgr");