summaryrefslogtreecommitdiffstats
path: root/arch/riscv
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2020-02-12 19:34:24 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-25 08:25:48 +0100
commit1c2106d2d9c1e423f43e12f3c90c19b21aa4c006 (patch)
tree72e7ad9d5d667f3b8069927c5d7021459d4679bf /arch/riscv
parent0bc9de1b1c1b5401fe46febe6e4868b91f2f1acc (diff)
downloadlinux-stable-1c2106d2d9c1e423f43e12f3c90c19b21aa4c006.tar.gz
linux-stable-1c2106d2d9c1e423f43e12f3c90c19b21aa4c006.tar.bz2
linux-stable-1c2106d2d9c1e423f43e12f3c90c19b21aa4c006.zip
riscv: Force flat memory model with no-mmu
[ Upstream commit aa2734202acc506d09c8e641db4da161f902df27 ] Compilation errors trigger if ARCH_SPARSEMEM_ENABLE is enabled for a nommu kernel. Since the sparsemem model does not make sense anyway for the nommu case, do not allow selecting this option to always use the flatmem model. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Anup Patel <anup@brainfault.org> Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index ade9699aa0dd..a0fa4be94a68 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -101,6 +101,7 @@ config ARCH_FLATMEM_ENABLE
config ARCH_SPARSEMEM_ENABLE
def_bool y
+ depends on MMU
select SPARSEMEM_VMEMMAP_ENABLE
config ARCH_SELECT_MEMORY_MODEL