]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: atmel-i2c - select CONFIG_BITREVERSE
authorArnd Bergmann <arnd@arndb.de>
Thu, 3 Dec 2020 23:20:04 +0000 (00:20 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 11 Dec 2020 10:12:06 +0000 (21:12 +1100)
commit30e246e3632a8dfbb5c0c86e5fb01014578569af
tree95d318ab27b9a8f3ab7c88691acf3f984e15d677
parentf7425551ca24ec741989fe1faec0a7609070caee
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: 220f5c620c26 ("crypto: atmel-ecc - introduce Microchip / Atmel ECC driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig