From: Christoph Hellwig Date: Wed, 8 Sep 2021 02:55:58 +0000 (-0700) Subject: riscv: only select GENERIC_IOREMAP if MMU support is enabled X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8350229ffceb372621e277d4d36f1ffca6212135;p=linux.git riscv: only select GENERIC_IOREMAP if MMU support is enabled nommu ioremap is an inline stub in asm-generic/io.h. Link: https://lkml.kernel.org/r/20210825072036.GA29161@lst.de Signed-off-by: Christoph Hellwig Cc: Nicholas Piggin Cc: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 4f7b70ae7c319..8598e3d103a3e 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -48,7 +48,7 @@ config RISCV select GENERIC_CLOCKEVENTS_BROADCAST if SMP select GENERIC_EARLY_IOREMAP select GENERIC_GETTIMEOFDAY if HAVE_GENERIC_VDSO - select GENERIC_IOREMAP + select GENERIC_IOREMAP if MMU select GENERIC_IRQ_MULTI_HANDLER select GENERIC_IRQ_SHOW select GENERIC_LIB_DEVMEM_IS_ALLOWED