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 <wanggang26@xiaomi.com>
This commit is contained in:
parent
9a9d0a647e
commit
02287a2976
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user