crypto: atmel - Fix build error of CRYPTO_AUTHENC
PATCH 1/1 crypto: atmel - Fix build error of CRYPTO_AUTHENC
Backport to 5.4.52-rc1 the following commits in upstream:
commit aee1f9f3c30e1e20e7f74729ced61eac7d74ca68 upstream. commit d158367682cd822aca811971e988be6a8d8f679f upstream.
If CRYPTO_DEV_ATMEL_AUTHENC is m, CRYPTO_DEV_ATMEL_SHA is m, but CRYPTO_DEV_ATMEL_AES is y, building will fail:
drivers/crypto/atmel-aes.o: In function `atmel_aes_authenc_init_tfm':
atmel-aes.c:(.text+0x670): undefined reference to atmel_sha_authenc_get_reqsize' atmel-aes.c:(.text+0x67a): undefined reference to atmel_sha_authenc_spawn' drivers/crypto/atmel-aes.o: In function `atmel_aes_authenc_setkey':
atmel-aes.c:(.text+0x7e5): undefined reference to `atmel_sha_authenc_setkey'
Make CRYPTO_DEV_ATMEL_AUTHENC depend on CRYPTO_DEV_ATMEL_AES, and select CRYPTO_DEV_ATMEL_SHA and CRYPTO_AUTHENC for it under there.
--- drivers/crypto/Kconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/crypto/Kconfig +4 -4
@@ -491,11 +491,9 @@ if CRYPTO_DEV_UX500 endif # if CRYPTO_DEV_UX500 config CRYPTO_DEV_ATMEL_AUTHENC - tristate "Support for Atmel IPSEC/SSL hw accelerator" + bool "Support for Atmel IPSEC/SSL hw accelerator" depends on ARCH_AT91 || COMPILE_TEST - select CRYPTO_AUTHENC - select CRYPTO_DEV_ATMEL_AES - select CRYPTO_DEV_ATMEL_SHA + depends on CRYPTO_DEV_ATMEL_AES help Some Atmel processors can combine the AES and SHA hw accelerators to enhance support of IPSEC/SSL.
@@ -508,6 +506,8 @@ config CRYPTO_DEV_ATMEL_AES select CRYPTO_AES select CRYPTO_AEAD select CRYPTO_BLKCIPHER + select CRYPTO_AUTHENC if CRYPTO_DEV_ATMEL_AUTHENC + select CRYPTO_DEV_ATMEL_SHA if CRYPTO_DEV_ATMEL_AUTHENC help Some Atmel processors have AES hw accelerator. Select this if you want to use the Atmel module for
Signature · 1 line
2.25.1
Greg KH
maintainerQuoted 3 lines · Tudor Ambarus
Backport to 5.4.52-rc1 the following commits in upstream:
commitaee1f9f3c30e1e20e7f74729ced61eac7d74ca68upstream. commitd158367682cd822aca811971e988be6a8d8f679fupstream.
Please backport the individual commits, do not squash them together. That way lies problems as it is hard to track and almost always incorrect.
thanks,
greg k-h
Quoted 11 lines · Greg KH
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Quoted 3 lines · Tudor Ambarus
Backport to 5.4.52-rc1 the following commits in upstream:
commitaee1f9f3c30e1e20e7f74729ced61eac7d74ca68upstream. commitd158367682cd822aca811971e988be6a8d8f679fupstream.Please backport the individual commits, do not squash them together. That way lies problems as it is hard to track and almost always incorrect.
d158367682cd822aca811971e988be6a8d8f679f attempted to fix the problem, but it was just papering it. The real fix is in aee1f9f3c30e1e20e7f74729ced61eac7d74ca68. I kept references to both commits for tracking reasons.
Please let me know if you still want me to backport both in dedicated patches, or maybe to just drop the reference to d158367682cd822aca811971e988be6a8d8f679f
Cheers,
ta
Greg KH
maintainerQuoted 13 lines · On Wed, Jul 15, 2020 at 11:37:47AM +0000, [email protected] wrote:
Quoted 11 lines · Greg KH
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Quoted 3 lines · Tudor Ambarus
Backport to 5.4.52-rc1 the following commits in upstream:
commitaee1f9f3c30e1e20e7f74729ced61eac7d74ca68upstream. commitd158367682cd822aca811971e988be6a8d8f679fupstream.Please backport the individual commits, do not squash them together. That way lies problems as it is hard to track and almost always incorrect.
Quoted 8 lines
d158367682cd822aca811971e988be6a8d8f679fattempted to fix the problem, but it was just papering it. The real fix is inaee1f9f3c30e1e20e7f74729ced61eac7d74ca68. I kept references to both commits for tracking reasons.Please let me know if you still want me to backport both in dedicated patches, or maybe to just drop the reference to
d158367682cd822aca811971e988be6a8d8f679f
No, please backport both, as a patch series.
thanks,
greg k-h