From 8a2d3958e94d3432f6309c4b77f37b4132c12d21 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Wed, 1 Nov 2023 16:26:34 +0200 Subject: [PATCH] mm/kmap: Fix bad dependency to ARCH_VMA_MAPPING kmap does not need ARCH_VMA_MAPPING => remove the dependency --- arch/Kconfig | 5 ++--- mm/Kconfig | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index 51c39c570e..35533bc7a6 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -686,7 +686,6 @@ config ARCH_SHM_VBASE config ARCH_KMAP_VBASE hex "Kernel dynamic virtual mappings base" - depends on ARCH_VMA_MAPPING ---help--- The virtual address of the beginning of the kernel dynamic mapping region. @@ -743,6 +742,8 @@ config ARCH_SHM_NPAGES maximum number of pages per region, and the configured size of each page. +endif # ARCH_VMA_MAPPING + config ARCH_KMAP_NPAGES int "Max kernel dynamic mapping pages" default 1 @@ -755,8 +756,6 @@ config ARCH_KMAP_NPAGES maximum number of pages per region, and the configured size of each page. -endif # ARCH_VMA_MAPPING - config ARCH_STACK_DYNAMIC bool "Dynamic user stack" default n diff --git a/mm/Kconfig b/mm/Kconfig index a73a37ac57..2c3d32aa1d 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -198,7 +198,6 @@ config MM_KMAP bool "Support for dynamic kernel virtual mappings" default n depends on MM_PGALLOC && BUILD_KERNEL - select ARCH_VMA_MAPPING ---help--- Build support for dynamically mapping pages from the page pool into kernel virtual memory. This includes pages that are already mapped