]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: io: cleanup imports and use "kernel vertical" style
authorDanilo Krummrich <dakr@kernel.org>
Tue, 4 Nov 2025 13:32:54 +0000 (14:32 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 11 Nov 2025 08:43:39 +0000 (19:43 +1100)
commit9d39842f6afcd0438c8353a9764d624eef2d160a
tree8635c2094063ef4c114c68e9e28488bc3708fd22
parent0bc605713f16ad77e0a3f30f992aa3794c381372
rust: io: cleanup imports and use "kernel vertical" style

Commit 46f045db5a94 ("rust: Add read_poll_timeout_atomic function")
initiated the first import change in the I/O module using the agreed
"kernel vertical" import style [1].

For consistency throughout the module, adjust all other imports
accordingly.

While at it, drop unnecessary imports covered by prelude::*.

Link: https://docs.kernel.org/rust/coding-guidelines.html#imports
Reviewed-by: Zhi Wang <zhiw@nvidia.com>
Link: https://patch.msgid.link/20251104133301.59402-1-dakr@kernel.org
[ Use prelude::* in io/poll.rs. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/io.rs
rust/kernel/io/mem.rs
rust/kernel/io/poll.rs
rust/kernel/io/resource.rs