This is an automated email from the ASF dual-hosted git repository.

pkarashchenko 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 8a2d3958e9 mm/kmap: Fix bad dependency to ARCH_VMA_MAPPING
8a2d3958e9 is described below

commit 8a2d3958e94d3432f6309c4b77f37b4132c12d21
Author: Ville Juven <ville.ju...@unikie.com>
AuthorDate: Wed Nov 1 16:26:34 2023 +0200

    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

Reply via email to