From: Arnd Bergmann Date: Thu, 3 Dec 2020 23:20:04 +0000 (+0100) Subject: crypto: atmel-i2c - select CONFIG_BITREVERSE X-Git-Tag: accepted/tizen/unified/20230118.172025~8155^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d33a23b0532d5d1b5b700e8641661261e7dbef61;p=platform%2Fkernel%2Flinux-rpi.git crypto: atmel-i2c - select CONFIG_BITREVERSE The bitreverse helper is almost always built into the kernel, but in a rare randconfig build it is possible to hit a case in which it is a loadable module while the atmel-i2c driver is built-in: arm-linux-gnueabi-ld: drivers/crypto/atmel-i2c.o: in function `atmel_i2c_checksum': atmel-i2c.c:(.text+0xa0): undefined reference to `byte_rev_table' Add one more 'select' statement to prevent this. Fixes: 11105693fa05 ("crypto: atmel-ecc - introduce Microchip / Atmel ECC driver") Signed-off-by: Arnd Bergmann Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 808eece..bbd5170 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -548,6 +548,7 @@ config CRYPTO_DEV_ATMEL_SHA config CRYPTO_DEV_ATMEL_I2C tristate + select BITREVERSE config CRYPTO_DEV_ATMEL_ECC tristate "Support for Microchip / Atmel ECC hw accelerator"