Commit d33a23b0 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Herbert Xu

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: 11105693 ("crypto: atmel-ecc - introduce Microchip / Atmel ECC driver")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a320dc2f
...@@ -548,6 +548,7 @@ config CRYPTO_DEV_ATMEL_SHA ...@@ -548,6 +548,7 @@ config CRYPTO_DEV_ATMEL_SHA
config CRYPTO_DEV_ATMEL_I2C config CRYPTO_DEV_ATMEL_I2C
tristate tristate
select BITREVERSE
config CRYPTO_DEV_ATMEL_ECC config CRYPTO_DEV_ATMEL_ECC
tristate "Support for Microchip / Atmel ECC hw accelerator" tristate "Support for Microchip / Atmel ECC hw accelerator"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment