]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: testmgr - make extra tests depend on cryptomgr
authorEric Biggers <ebiggers@google.com>
Mon, 20 May 2019 16:48:29 +0000 (09:48 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 May 2019 07:28:40 +0000 (15:28 +0800)
commit6279eb20c348f8d20220daf0fbfd3c3516544631
tree0056a1c93ca09626fa70c4f3723a9dc827d0cbb0
parent46b75c50df9f84668a1bb87dab797d8e0c1a4e18
crypto: testmgr - make extra tests depend on cryptomgr

The crypto self-tests are part of the "cryptomgr" module, which can
technically be disabled (though it rarely is).  If you do so, currently
you can still enable CRYPTO_MANAGER_EXTRA_TESTS, which doesn't make
sense since in that case testmgr.c isn't compiled at all.  Fix it by
making it CRYPTO_MANAGER_EXTRA_TESTS depend on CRYPTO_MANAGER2, like
CRYPTO_MANAGER_DISABLE_TESTS already does.

Fixes: 7790afaf1805 ("crypto: testmgr - introduce CONFIG_CRYPTO_MANAGER_EXTRA_TESTS")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig