crypto: sa2ul - add Kconfig selects to fix build error
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 6 Aug 2020 15:54:48 +0000 (08:54 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Aug 2020 04:43:51 +0000 (14:43 +1000)
commitbfe8fe939a049e99e1bda0f81e72a612e83ab446
tree2f955b55531734793985f65f98a8b90828dce45d
parent11a954eebc4396b51af745e5242df05f71be6d9e
crypto: sa2ul - add Kconfig selects to fix build error

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'

Fixes: 7694b6ca649f ("crypto: sa2ul - Add crypto driver")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Randy Dunlap <rdunlap@infradead.org> # 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 <t-kristo@ti.com>
Cc: Keerthy <j-keerthy@ti.com>
Reviewed-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig