* Mainline UML Rust stable io.rs unused imports
@ 2026-02-15 12:47 Miguel Ojeda
2026-02-16 10:19 ` Johannes Berg
2026-02-16 10:34 ` Danilo Krummrich
0 siblings, 2 replies; 4+ messages in thread
From: Miguel Ojeda @ 2026-02-15 12:47 UTC (permalink / raw)
To: David Gow, Danilo Krummrich, Alice Ryhl, Daniel Almeida
Cc: Richard Weinberger, Anton Ivanov, Johannes Berg, driver-core,
linux-um, rust-for-linux
Hi all,
In mainline and next, for UML with Rust stable (but not with Rust
minimum), I am seeing:
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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Mainline UML Rust stable io.rs unused imports
2026-02-15 12:47 Mainline UML Rust stable io.rs unused imports Miguel Ojeda
@ 2026-02-16 10:19 ` Johannes Berg
2026-02-16 10:34 ` Danilo Krummrich
1 sibling, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2026-02-16 10:19 UTC (permalink / raw)
To: Miguel Ojeda, David Gow, Danilo Krummrich, Alice Ryhl,
Daniel Almeida
Cc: Richard Weinberger, Anton Ivanov, driver-core, linux-um,
rust-for-linux
On Sun, 2026-02-15 at 13:47 +0100, Miguel Ojeda wrote:
> Hi all,
>
> In mainline and next, for UML with Rust stable (but not with Rust
> minimum), I am seeing:
>
> 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;
> | ^^^^^^^^^^^
Not sure I understand, the cfg() seems to only be fore 64-bit, but it
_is_ possible to build UML without IO accessors at all, since it's just
virtual, but I don't see how that would reflect in io.rs.
Not sure I can say anything else about it, sorry.
johannes
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Mainline UML Rust stable io.rs unused imports
2026-02-15 12:47 Mainline UML Rust stable io.rs unused imports Miguel Ojeda
2026-02-16 10:19 ` Johannes Berg
@ 2026-02-16 10:34 ` Danilo Krummrich
2026-02-16 13:22 ` Danilo Krummrich
1 sibling, 1 reply; 4+ messages in thread
From: Danilo Krummrich @ 2026-02-16 10:34 UTC (permalink / raw)
To: Miguel Ojeda
Cc: David Gow, Alice Ryhl, Daniel Almeida, Richard Weinberger,
Anton Ivanov, Johannes Berg, driver-core, linux-um,
rust-for-linux
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Mainline UML Rust stable io.rs unused imports
2026-02-16 10:34 ` Danilo Krummrich
@ 2026-02-16 13:22 ` Danilo Krummrich
0 siblings, 0 replies; 4+ messages in thread
From: Danilo Krummrich @ 2026-02-16 13:22 UTC (permalink / raw)
To: Miguel Ojeda
Cc: David Gow, Alice Ryhl, Daniel Almeida, Richard Weinberger,
Anton Ivanov, Johannes Berg, driver-core, linux-um,
rust-for-linux
On Mon Feb 16, 2026 at 11:34 AM CET, Danilo Krummrich wrote:
> I will send a fix soon.
https://lore.kernel.org/driver-core/20260216131534.65008-1-dakr@kernel.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-02-16 13:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-15 12:47 Mainline UML Rust stable io.rs unused imports Miguel Ojeda
2026-02-16 10:19 ` Johannes Berg
2026-02-16 10:34 ` Danilo Krummrich
2026-02-16 13:22 ` Danilo Krummrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox