This patchset makes it so that the self-test code doesn't still slow things down when self-tests are disabled via the kconfig. It also optimizes the registration of "internal" algorithms and silences a noisy log message. Eric Biggers (6): crypto: optimize algorithm registration when self-tests disabled crypto: optimize registration of internal algorithms crypto: compile out crypto_boot_test_finished when tests disabled crypto: skip kdf_sp800108 self-test when tests disabled crypto: silence noisy kdf_sp800108 self-test crypto: compile out test-related algboss code when tests disabled crypto/algapi.c | 160 ++++++++++++++++++++++++------------------ crypto/algboss.c | 26 +++---- crypto/api.c | 8 ++- crypto/internal.h | 13 +++- crypto/kdf_sp800108.c | 11 ++- 5 files changed, 124 insertions(+), 94 deletions(-) base-commit: f67dd6ce0723ad013395f20a3f79d8a437d3f455 -- 2.38.1