From: Mike Rapoport Date: Thu, 22 Apr 2021 06:43:26 +0000 (+1000) Subject: riscv/Kconfig: make direct map manipulation options depend on MMU X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a4ca46b0e40198813a5c2d0933cbef7cdfa13a75;p=users%2Fjedix%2Flinux-maple.git riscv/Kconfig: make direct map manipulation options depend on MMU ARCH_HAS_SET_DIRECT_MAP and ARCH_HAS_SET_MEMORY configuration options have no meaning when CONFIG_MMU is disabled and there is no point to enable them for the nommu case. Add an explicit dependency on MMU for these options. Link: https://lkml.kernel.org/r/20210303162209.8609-4-rppt@kernel.org Signed-off-by: Mike Rapoport Reported-by: kernel test robot Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a8ad8eb761206..c426e7d209076 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -26,8 +26,8 @@ config RISCV select ARCH_HAS_KCOV select ARCH_HAS_MMIOWB select ARCH_HAS_PTE_SPECIAL - select ARCH_HAS_SET_DIRECT_MAP - select ARCH_HAS_SET_MEMORY + select ARCH_HAS_SET_DIRECT_MAP if MMU + select ARCH_HAS_SET_MEMORY if MMU select ARCH_HAS_STRICT_KERNEL_RWX if MMU && !XIP_KERNEL select ARCH_HAS_STRICT_MODULE_RWX if MMU && !XIP_KERNEL select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST