Skip to content

Commit cab660d

Browse files
corubbapopcornmix
authored andcommitted
spi: rp2040-gpio-bridge: Add CRYPTO_HASH2 dependency
The driver uses a couple of crypto_shash_* functions, which are not always available, potentially leading to build errors: arm-linux-ld: drivers/spi/spi-rp2040-gpio-bridge.o: in function `rp2040_gbdg_block_hash': spi-rp2040-gpio-bridge.c:(.text+0x274): undefined reference to `crypto_shash_update' spi-rp2040-gpio-bridge.c:(.text+0x2c4): undefined reference to `crypto_shash_update' spi-rp2040-gpio-bridge.c:(.text+0x2e4): undefined reference to `crypto_shash_final' spi-rp2040-gpio-bridge.c:(.text+0x2ec): undefined reference to `crypto_shash_digest' spi-rp2040-gpio-bridge.c:(.text+0x2fc): undefined reference to `crypto_shash_update' arm-linux-ld: drivers/spi/spi-rp2040-gpio-bridge.o: in function `rp2040_gbdg_probe': spi-rp2040-gpio-bridge.c:(.text+0x510): undefined reference to `crypto_alloc_shash' Fixes: fe24eda ("spi: Add a driver for the RPI RP2040 GPIO bridge") Signed-off-by: Corubba Smith <corubba@gmx.de>
1 parent 3bd6d14 commit cab660d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ config SPI_RB4XX
947947

948948
config SPI_RP2040_GPIO_BRIDGE
949949
tristate "Raspberry Pi RP2040 GPIO Bridge"
950-
depends on I2C && SPI && GPIOLIB
950+
depends on I2C && SPI && GPIOLIB && CRYPTO_HASH2
951951
help
952952
Support for the Raspberry Pi RP2040 GPIO bridge.
953953

0 commit comments

Comments
 (0)