You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/09/17 12:09:45 UTC
(nuttx) branch master updated: shm:fix build error
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
The following commit(s) were added to refs/heads/master by this push:
new 02287a2976 shm:fix build error
02287a2976 is described below
commit 02287a29767bd2d410f1d5fe0bbd9830dfa66b3d
Author: wanggang26 <wa...@xiaomi.com>
AuthorDate: Sun Apr 7 15:35:01 2024 +0800
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 <wa...@xiaomi.com>
---
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