From: Sven Schnelle Date: Fri, 28 Jul 2023 10:04:30 +0000 (+0200) Subject: s390/cert_store: select CRYPTO_LIB_SHA256 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=481daa505bc3eb4ac7991e2e7a981506639935fd;p=linux.git s390/cert_store: select CRYPTO_LIB_SHA256 A build failure was reported when sha256() is not present: gcc-13.1.0-nolibc/s390-linux/bin/s390-linux-ld: arch/s390/kernel/cert_store.o: in function `check_certificate_hash': arch/s390/kernel/cert_store.c:267: undefined reference to `sha256' Therefore make CONFIG_CERT_STORE select CRYPTO_LIB_SHA256. Fixes: 8cf57d7217c3 ("s390: add support for user-defined certificates") Reported-by: Randy Dunlap Closes: https://lore.kernel.org/all/8ecb57fb-4560-bdfc-9e55-63e3b0937132@infradead.org/ Signed-off-by: Sven Schnelle Tested-by: Randy Dunlap # build-tested Acked-by: Randy Dunlap Link: https://lore.kernel.org/r/20230728100430.1567328-1-svens@linux.ibm.com Signed-off-by: Heiko Carstens --- diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index d9d50a7a2016a..18bf754e1fada 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -516,6 +516,7 @@ config KEXEC_SIG config CERT_STORE bool "Get user certificates via DIAG320" depends on KEYS + select CRYPTO_LIB_SHA256 help Enable this option if you want to access user-provided secure boot certificates via DIAG 0x320.