]> git.baikalelectronics.ru Git - kernel.git/commitdiff
crypto: atmel - Fix selection of CRYPTO_AUTHENC
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 1 Nov 2019 16:40:37 +0000 (16:40 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Nov 2019 15:15:53 +0000 (23:15 +0800)
The following error is raised when CONFIG_CRYPTO_DEV_ATMEL_AES=y and
CONFIG_CRYPTO_DEV_ATMEL_AUTHENC=m:
drivers/crypto/atmel-aes.o: In function `atmel_aes_authenc_setkey':
atmel-aes.c:(.text+0x9bc): undefined reference to `crypto_authenc_extractkeys'
Makefile:1094: recipe for target 'vmlinux' failed

Fix it by moving the selection of CRYPTO_AUTHENC under
config CRYPTO_DEV_ATMEL_AES.

Fixes: 3a6e8fa924bb ("crypto: atmel-authenc - add support to...")
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig

index 8a1d04805428ee6e6cfef001510347215de57058..c5cc04ddc4fb34ca5fd4a221c657eceedf73d337 100644 (file)
@@ -494,7 +494,6 @@ endif # if CRYPTO_DEV_UX500
 config CRYPTO_DEV_ATMEL_AUTHENC
        tristate "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
        help
@@ -508,6 +507,7 @@ config CRYPTO_DEV_ATMEL_AES
        depends on ARCH_AT91 || COMPILE_TEST
        select CRYPTO_AES
        select CRYPTO_AEAD
+       select CRYPTO_AUTHENC
        select CRYPTO_SKCIPHER
        help
          Some Atmel processors have AES hw accelerator.