diff options
author | 2025-05-05 13:33:41 -0700 | |
---|---|---|
committer | 2025-05-12 13:33:14 +0800 | |
commit | 40b9969796bfa49ed1b0f7ddc254f48cb2ac6d2c (patch) | |
tree | 3348bf44e9e622851051c1b1d26f7cd8ea12114a /crypto/algboss.c | |
parent | crypto: testmgr - remove panic_on_fail (diff) | |
download | wireguard-linux-40b9969796bfa49ed1b0f7ddc254f48cb2ac6d2c.tar.xz wireguard-linux-40b9969796bfa49ed1b0f7ddc254f48cb2ac6d2c.zip |
crypto: testmgr - replace CRYPTO_MANAGER_DISABLE_TESTS with CRYPTO_SELFTESTS
The negative-sense of CRYPTO_MANAGER_DISABLE_TESTS is a longstanding
mistake that regularly causes confusion. Especially bad is that you can
have CRYPTO=n && CRYPTO_MANAGER_DISABLE_TESTS=n, which is ambiguous.
Replace CRYPTO_MANAGER_DISABLE_TESTS with CRYPTO_SELFTESTS which has the
expected behavior.
The tests continue to be disabled by default.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/algboss.c')
-rw-r--r-- | crypto/algboss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/algboss.c b/crypto/algboss.c index ef5c73780fc7..846f586889ee 100644 --- a/crypto/algboss.c +++ b/crypto/algboss.c @@ -189,7 +189,7 @@ static int cryptomgr_schedule_test(struct crypto_alg *alg) struct task_struct *thread; struct crypto_test_param *param; - if (IS_ENABLED(CONFIG_CRYPTO_MANAGER_DISABLE_TESTS)) + if (!IS_ENABLED(CONFIG_CRYPTO_SELFTESTS)) return NOTIFY_DONE; if (!try_module_get(THIS_MODULE)) |