This is an automated email from the ASF dual-hosted git repository.
michallenc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 840339f8832 arch/armv7-a: Include stdbool.h and stdint.h in arm.h.
840339f8832 is described below
commit 840339f88322ecde5f6fe96d7f5d741a832ac8fd
Author: Marco Casaroli <[email protected]>
AuthorDate: Sun Oct 25 21:51:22 2026 +0100
arch/armv7-a: Include stdbool.h and stdint.h in arm.h.
The arm_fault_kill() prototype in arm.h uses bool and uint32_t, but
arm.h did not include the headers that define them. a1x_boot.c
includes arm.h before such a header, so pcduino-a10:nsh did not build:
"unknown type name 'bool'".
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
arch/arm/src/armv7-a/arm.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/src/armv7-a/arm.h b/arch/arm/src/armv7-a/arm.h
index 4593fab6463..8f035ec91b5 100644
--- a/arch/arm/src/armv7-a/arm.h
+++ b/arch/arm/src/armv7-a/arm.h
@@ -31,6 +31,15 @@
#ifndef __ARCH_ARM_SRC_ARMV7_A_ARM_H
#define __ARCH_ARM_SRC_ARMV7_A_ARM_H
+/****************************************************************************
+ * Included Files
+ ****************************************************************************/
+
+#ifndef __ASSEMBLY__
+# include <stdbool.h>
+# include <stdint.h>
+#endif /* __ASSEMBLY__ */
+
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/