This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 726683485f778a55e9f04a070cd6722953d5a6e5 Author: buxiasen <buxia...@xiaomi.com> AuthorDate: Fri Apr 25 22:24:05 2025 +0800 arch/arm/heap: add mmu.h fix not defined error when BUILD_KERNEL fix PGTABLE_SIZE not defined in sama5d4-ek/knsh Error: common/arm_allocateheap.c:177:11: error: 'PGTABLE_SIZE' undeclared (first use in this function); did you mean 'PGTABLE_L2_SIZE'? 177 | size -= PGTABLE_SIZE * CONFIG_SMP_NCPUS; | ^~~~~~~~~~~~ Signed-off-by: buxiasen <buxia...@xiaomi.com> --- arch/arm/src/common/arm_allocateheap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/src/common/arm_allocateheap.c b/arch/arm/src/common/arm_allocateheap.c index bf501faa6d..f29b028441 100644 --- a/arch/arm/src/common/arm_allocateheap.c +++ b/arch/arm/src/common/arm_allocateheap.c @@ -39,6 +39,9 @@ #include "arm_internal.h" #include "chip.h" +#ifdef CONFIG_BUILD_KERNEL +#include "mmu.h" +#endif /**************************************************************************** * Pre-processor Definitions