mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
rust: io: cleanup imports and use "kernel vertical" style
Commit 46f045db5a ("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 [1]
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>
This commit is contained in:
@@ -4,8 +4,10 @@
|
||||
//!
|
||||
//! C header: [`include/asm-generic/io.h`](srctree/include/asm-generic/io.h)
|
||||
|
||||
use crate::error::{code::EINVAL, Result};
|
||||
use crate::{bindings, build_assert, ffi::c_void};
|
||||
use crate::{
|
||||
bindings,
|
||||
prelude::*, //
|
||||
};
|
||||
|
||||
pub mod mem;
|
||||
pub mod poll;
|
||||
|
||||
Reference in New Issue
Block a user