Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>
Link: https://patch.msgid.link/20240403124300.65379-2-schnelle@linux.ibm.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Niklas Schnelle and committed by
Johannes Berg
ddd268c4 12b8e7e6

+2 -1
+2 -1
arch/um/Kconfig
··· 48 48 config UML_IOMEM_EMULATION 49 49 bool 50 50 select INDIRECT_IOMEM 51 + select HAS_IOPORT 51 52 select GENERIC_PCI_IOMAP 52 53 select GENERIC_IOMAP 53 54 select NO_GENERIC_PCI_IOPORT_MAP 54 55 55 56 config NO_IOPORT_MAP 56 - def_bool y 57 + def_bool !UML_IOMEM_EMULATION 57 58 58 59 config ISA 59 60 bool