From 6bd191e7e0cf79b7f0f6d78e0f3a22ff3b03c2d7 Mon Sep 17 00:00:00 2001 From: "lijing.ly" Date: Wed, 19 Feb 2025 19:29:21 +0800 Subject: [PATCH] drivers/rpmsg/Kconfig: Add SPI dependency for RPMSG_PORT_SPI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If SPI dependency is not set, the following warning will be generated during compilation: [109/1450] Building C object drivers/CMakeFiles/drivers.dir/rpmsg/rpmsg_port_spi.c.o /data/code/nuttxspace/nuttx/drivers/rpmsg/rpmsg_port_spi.c: In function ‘rpmsg_port_spi_exchange’: /data/code/nuttxspace/nuttx/drivers/rpmsg/rpmsg_port_spi.c:233:3: warning: implicit declaration of function ‘SPI_EXCHANGE’ [-Wimplicit-function-declaration] 233 | SPI_EXCHANGE(rpspi->spi, txhdr, rpspi->rxhdr, | ^~~~~~~~~~~~ [1450/1450] Pac SIM with dynamic libs in nuttx.tgz Signed-off-by: lijing.ly --- drivers/rpmsg/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rpmsg/Kconfig b/drivers/rpmsg/Kconfig index 25dafad3963..3d10914868a 100644 --- a/drivers/rpmsg/Kconfig +++ b/drivers/rpmsg/Kconfig @@ -40,6 +40,7 @@ config RPMSG_PORT config RPMSG_PORT_SPI bool "Rpmsg SPI Port Driver Support" default n + depends on SPI select RPMSG_PORT ---help--- Rpmsg SPI Port driver used for cross chip communication.