]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
um: Select HAS_IOREMAP for UML_IOMEM_EMULATION
authorNiklas Schnelle <schnelle@linux.ibm.com>
Wed, 3 Apr 2024 12:43:00 +0000 (14:43 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jul 2024 10:21:01 +0000 (12:21 +0200)
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>
Link: https://patch.msgid.link/20240403124300.65379-2-schnelle@linux.ibm.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/Kconfig

index 93a5a8999b07ee620df45a94824fe587f58058e9..75801673115684ec270f38aae87574147d2ffa7a 100644 (file)
@@ -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