From d8ed88c8a683407a1e4038adee9a0afca0075174 Mon Sep 17 00:00:00 2001 From: Michal Lenc Date: Mon, 21 Oct 2024 09:16:24 +0200 Subject: [PATCH] samv7: fix QSPI build Commit 313d6df7 caused the following build error: CC: fixedmath/lib_b16atan2.c chip/sam_qspi.c: In function 'qspi_memory': chip/sam_qspi.c:1552:7: warning: implicit declaration of function 'IS_ALIGNED' [-Wimplicit-function-declaration] 1552 | IS_ALIGNED((uintptr_t)meminfo->buffer, 4) && | ^~~~~~~~~~ In file included from chip/sam_qspi.c:41: chip/sam_qspi.c: In function 'qspi_alloc': chip/sam_qspi.c:1591:21: warning: implicit declaration of function 'ALIGN_UP' [-Wimplicit-function-declaration] 1591 | return kmm_malloc(ALIGN_UP(buflen, 4)); This was caused by missing include of nuttx.h header defining ALIGN_UP and IS_ALIGNED. Signed-off-by: Michal Lenc --- arch/arm/src/samv7/sam_qspi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/src/samv7/sam_qspi.c b/arch/arm/src/samv7/sam_qspi.c index 85ce6075a72..25d12711b48 100644 --- a/arch/arm/src/samv7/sam_qspi.c +++ b/arch/arm/src/samv7/sam_qspi.c @@ -40,6 +40,7 @@ #include #include #include +#include #include #include