arch/Kconfig: remove virtual memory allocator dependency from MM_SHM

The dependency should be vice versa; the MM_SHM should depend on the
existence of the virtual memory range allocator.

Create a new CONFIG flag CONFIG_ARCH_VMA_MAPPING, which will define that
there is a virtual memory range allocator. Make MM_SHM select that flag

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2023-01-11 13:56:59 +04:00
committed by Xiang Xiao
parent fd0195b0d8
commit 70de321de3
14 changed files with 29 additions and 24 deletions
+1
View File
@@ -162,6 +162,7 @@ config MM_SHM
bool "Shared memory support"
default n
depends on MM_PGALLOC && BUILD_KERNEL
select ARCH_VMA_MAPPING
---help---
Build in support for the shared memory interfaces shmget(), shmat(),
shmctl(), and shmdt().