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 fc1f1d169d9d3cf82f26f91bf92e9ecb2dabaf39
Author: zhangyuan29 <[email protected]>
AuthorDate: Wed Nov 25 13:47:22 2026 +0800

    percpu: include stdbool.h before arch/arch.h
    
    percpu.h is included from userspace.h and mm.h and pulls
    <arch/arch.h> into translation units that have not included
    <stdbool.h> yet.  The xtensa arch.h declares
    xtensa_imm_heapmember() returning bool without including
    <stdbool.h> itself, breaking all xtensa builds with
    CONFIG_XTENSA_IMEM_USE_SEPARATE_HEAP.
    
    Include <stdbool.h> first, matching what include/nuttx/arch.h
    already does before <arch/arch.h>.
    
    Signed-off-by: zhangyuan29 <[email protected]>
---
 include/nuttx/percpu.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/nuttx/percpu.h b/include/nuttx/percpu.h
index 14b500818ab..808ef124edd 100644
--- a/include/nuttx/percpu.h
+++ b/include/nuttx/percpu.h
@@ -29,6 +29,7 @@
 
 #include <nuttx/config.h>
 #include <nuttx/compiler.h>
+#include <stdbool.h>
 
 #include <arch/arch.h>
 

Reply via email to