aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Schnelle <schnelle@linux.ibm.com>2024-02-19 13:47:17 +0100
committerNiklas Schnelle <schnelle@linux.ibm.com>2024-04-02 11:58:19 +0200
commit3b5da3a911da9804b43dd773ae13cab60f282293 (patch)
tree65b756044e0f99aab0dab4653228eb40877e9a71
parent9954d0f63b68d3d2c6e79cebc7fe71fda801eeb5 (diff)
downloadlinux-3b5da3a911da9804b43dd773ae13cab60f282293.tar.gz
um: Select HAS_IOREMAP for UML_IOMEM_EMULATION
In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at compile time. UML supports these via its UML_IOMEM_EMULATION so let that select HAS_IOPORT and also reflect this in NO_IOPORT_MAP. Co-developed-by: Arnd Bergmann <arnd@kernel.org> Signed-off-by: Arnd Bergmann <arnd@kernel.org> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
-rw-r--r--arch/um/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/Kconfig b/arch/um/Kconfig
index 93a5a8999b07ee..75801673115684 100644
--- a/arch/um/Kconfig
+++ b/arch/um/Kconfig
@@ -48,12 +48,13 @@ config NO_IOMEM
config UML_IOMEM_EMULATION
bool
select INDIRECT_IOMEM
+ select HAS_IOPORT
select GENERIC_PCI_IOMAP
select GENERIC_IOMAP
select NO_GENERIC_PCI_IOPORT_MAP
config NO_IOPORT_MAP
- def_bool y
+ def_bool !UML_IOMEM_EMULATION
config ISA
bool