crypto: atmel-i2c - select CONFIG_BITREVERSE
authorArnd Bergmann <arnd@arndb.de>
Thu, 3 Dec 2020 23:20:04 +0000 (00:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:50 +0000 (11:53 +0100)
commit7682cd97aa38edc811836be42d11b25f76ca328e
tree43a469425f8b915eb77683da4e5c1f93861aaeec
parentdf1c37a8786b307cd59fc0d72bdf8819dab095b2
crypto: atmel-i2c - select CONFIG_BITREVERSE

[ Upstream commit d33a23b0532d5d1b5b700e8641661261e7dbef61 ]

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 <arnd@arndb.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/Kconfig