Skip to content

Commit b7240ab

Browse files
corubbapelwell
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 02de837 commit b7240ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/Kconfig

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

876876
config SPI_RP2040_GPIO_BRIDGE
877877
tristate "Raspberry Pi RP2040 GPIO Bridge"
878-
depends on I2C && SPI && GPIOLIB
878+
depends on I2C && SPI && GPIOLIB && CRYPTO_HASH2
879879
help
880880
Support for the Raspberry Pi RP2040 GPIO bridge.
881881

0 commit comments

Comments
 (0)