On Tue, Dec 5, 2023, at 15:34, Philipp Stanner wrote: > Alright, so it seems that not all architectures provide ioport_unmap(). > So I'll provide yet another preprocessor guard in v4. Wohooo, we love > them... Right, I think CONFIG_HAS_IOPORT_MAP is the symbol you need to check here. There are a few targets that have inb/outb but can't map them to __iomem pointers for some reason, as well as more that have neither CONFIG_HAS_IOPORT nor CONFIG_HAS_IOPORT_MAP. Arnd