On Sun Feb 15, 2026 at 1:47 PM CET, Miguel Ojeda wrote: > Hi all, > > In mainline and next, for UML with Rust stable (but not with Rust > minimum), I am seeing:
I think the problem is not UML specific, it is about define_read!() and define_write!() being crate public, while the only user is PCI. So, if CONFIG_PCI=n, we get this warning. I will send a fix soon. Thanks for reporting! - Danilo > > RUSTC L rust/kernel.o - due to target missing > error: unused import: `define_read` > --> rust/kernel/io.rs:229:16 > | > 229 | pub(crate) use define_read; > | ^^^^^^^^^^^ > | > = note: `-D unused-imports` implied by `-D warnings` > = help: to override `-D warnings` add `#[allow(unused_imports)]` > > error: unused import: `define_write` > --> rust/kernel/io.rs:262:16 > | > 262 | pub(crate) use define_write; > | ^^^^^^^^^^^ > > Cheers, > Miguel
