Thread (3 messages) read the whole thread 3 messages, 3 authors, 2020-08-21
STALE2173d

[PATCH -next] crypto: sa2ul: add Kconfig selects to fix build error

From: Randy Dunlap <hidden>
Date: 2020-08-06 17:28:11
Also in: lkml

From: Randy Dunlap <redacted>

sa2ul.c uses sha{1,256,512}_zero_message_hash, so select the
Kconfig symbols that provide those, like other crypto drivers do.

Fixes this build error:

ld: drivers/crypto/sa2ul.o: in function `sa_sha_digest':
sa2ul.c:(.text+0x2b25): undefined reference to `sha512_zero_message_hash'

Signed-off-by: Randy Dunlap <redacted>
Reported-by: Randy Dunlap <redacted> # 2020-07-29
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: linux-crypto@vger.kernel.org
Cc: Tero Kristo <redacted>
Cc: Keerthy <j-keerthy@ti.com>
---
 drivers/crypto/Kconfig |    3 +++
 1 file changed, 3 insertions(+)
--- linux-next-20200806.orig/drivers/crypto/Kconfig
+++ linux-next-20200806/drivers/crypto/Kconfig
@@ -873,6 +873,9 @@ config CRYPTO_DEV_SA2UL
 	select CRYPTO_AES
 	select CRYPTO_AES_ARM64
 	select CRYPTO_ALGAPI
+	select CRYPTO_SHA1
+	select CRYPTO_SHA256
+	select CRYPTO_SHA512
 	select HW_RANDOM
 	select SG_SPLIT
 	help
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help