crypto: api - Move cryptomgr soft dependency into algapi
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 2 Feb 2022 06:46:48 +0000 (17:46 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Feb 2022 08:10:26 +0000 (09:10 +0100)
commit40eb05e5e72b29568f6f46d5a975933716fe4f84
treea77ae55f6aa39d8a76e5112c13edbc120e127f04
parentab32ea3ad0d5086bad89f7c04cc655b6a4078b04
crypto: api - Move cryptomgr soft dependency into algapi

commit c6ce9c5831cae515d375a01b97ae1778689acf19 upstream.

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 <jbeulich@suse.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/algapi.c
crypto/api.c