This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 098822cba8efd1925ab0c199de7e4be9773593ef Author: Ricard Rosson <[email protected]> AuthorDate: Fri Nov 27 05:00:27 2026 +0000 arch/xtensa/esp32s3: Fix the link of the QSPI driver with DMA. esp32s3_qspi_alloc() uses ALIGN_UP() when CONFIG_ESP32S3_SPI_DMA is selected, but the file does not include the header that defines it. The compiler only warns about an implicit declaration, and the link fails with an undefined reference to ALIGN_UP in every configuration that uses the QSPI bus with DMA. Include nuttx/nuttx.h. Assisted-by: Claude Code:claude-fable-5-2 Signed-off-by: Ricard Rosson <[email protected]> --- arch/xtensa/src/esp32s3/esp32s3_qspi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/xtensa/src/esp32s3/esp32s3_qspi.c b/arch/xtensa/src/esp32s3/esp32s3_qspi.c index f5832f55f0a..0a98eb0d7d0 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_qspi.c +++ b/arch/xtensa/src/esp32s3/esp32s3_qspi.c @@ -36,6 +36,7 @@ #include <stdlib.h> #include <time.h> +#include <nuttx/nuttx.h> #include <nuttx/arch.h> #include <nuttx/irq.h> #include <nuttx/clock.h>
