Skip to content

Commit d33a23b

Browse files
arndbherbertx
authored andcommitted
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: 1110569 ("crypto: atmel-ecc - introduce Microchip / Atmel ECC driver") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent a320dc2 commit d33a23b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/crypto/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ config CRYPTO_DEV_ATMEL_SHA
548548

549549
config CRYPTO_DEV_ATMEL_I2C
550550
tristate
551+
select BITREVERSE
551552

552553
config CRYPTO_DEV_ATMEL_ECC
553554
tristate "Support for Microchip / Atmel ECC hw accelerator"

0 commit comments

Comments
 (0)