Re: `io{re,un}map()` build error in s390 under `!CONFIG_HAS_IOMEM`

"Danilo Krummrich" <[email protected]> Mon, 03 Aug 2026 22:09:08 +0200
Newsgroups org.kernel.vger.linux-arch,dev.linux.lists.driver-core,org.kernel.vger.linux-s390,org.kernel.vger.rust-for-linux
Message-ID <[email protected]>
On Mon Aug 3, 2026 at 9:56 PM CEST, Arnd Bergmann wrote:
> In theory you should be able to use rust code without PCI MMIO
> support, but I can't see any practical downsides to making rust
> 'depends on HAS_MMIO' to avoid having to add those #ifdef.

I think the implications should be minor without making Rust depend on
CONFIG_HAS_IOMEM.

I just sent out a fix [1]; the only annoying part is [2], but we should cha=
nge
those doc-tests anyway. For the one in rust/kernel/io.rs we already did in
driver-core-next.

[1] https://lore.kernel.org/driver-core/20260803200249.3494259-1-dakr@kerne=
l.org/
[2] https://lore.kernel.org/driver-core/20260803200249.3494259-2-dakr@kerne=
l.org/