From 02287a29767bd2d410f1d5fe0bbd9830dfa66b3d Mon Sep 17 00:00:00 2001 From: wanggang26 Date: Sun, 7 Apr 2024 15:35:01 +0800 Subject: [PATCH] shm:fix build error after enable both CONFIG_BUILD_KERNEL and CONFIG_ARCH_VMA_MAPPING arch.h:141:18: error: 'ARCH_SHM_MAXPAGES' undeclared here Signed-off-by: wanggang26 --- arch/arm/include/arch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/arch.h b/arch/arm/include/arch.h index e2631b3cf8..d511574e7d 100644 --- a/arch/arm/include/arch.h +++ b/arch/arm/include/arch.h @@ -95,7 +95,7 @@ do { \ # define ARCH_HEAP_NSECTS ARCH_PG2SECT(CONFIG_ARCH_HEAP_NPAGES) # ifdef CONFIG_ARCH_VMA_MAPPING -# define ARCH_SHM_NSECTS ARCH_PG2SECT(ARCH_SHM_MAXPAGES) +# define ARCH_SHM_NSECTS ARCH_PG2SECT((CONFIG_ARCH_SHM_NPAGES * CONFIG_ARCH_SHM_MAXREGIONS)) # endif # ifdef CONFIG_ARCH_STACK_DYNAMIC