Skip to content

Commit

Permalink
shm:fix build error
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
wanggang26 committed Sep 17, 2024
1 parent 9a9d0a6 commit 3f465b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/include/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f465b5

Please sign in to comment.