Commit 4294518a authored by Eric Biggers's avatar Eric Biggers Committed by Todd Kjos
Browse files

UPSTREAM: crypto: api - compile out crypto_boot_test_finished when tests disabled



The crypto_boot_test_finished static key is unnecessary when self-tests
are disabled in the kconfig, so optimize it out accordingly, along with
the entirety of crypto_start_tests().  This mainly avoids the overhead
of an unnecessary static_branch_enable() on every boot.

Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>

Bug: 256875295
(cherry picked from commit 06bd9c96)
Change-Id: I68eff9772dc219a8786bf410cb4e946052ea7811
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 13013672
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment