diff options
author | Andreas Hindborg <a.hindborg@kernel.org> | 2025-09-02 11:55:01 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-09-02 05:23:56 -0600 |
commit | f4b72f1558be1e2b173b6b1f93c09dc668592a26 (patch) | |
tree | 622ef2a3872d5413ddcd722483d75f8240f93073 /rust/kernel | |
parent | 60e1eeed8b53f65ef7919fd3f79cc9b7f20795c5 (diff) |
rust: block: normalize imports for `gen_disk.rs`
Clean up the import statements in `gen_disk.rs` to make the code easier to
maintain.
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20250902-rnull-up-v6-16-v7-7-b5212cc89b98@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/kernel')
-rw-r--r-- | rust/kernel/block/mq/gen_disk.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/rust/kernel/block/mq/gen_disk.rs b/rust/kernel/block/mq/gen_disk.rs index cd54cd64ea88..679ee1bb2195 100644 --- a/rust/kernel/block/mq/gen_disk.rs +++ b/rust/kernel/block/mq/gen_disk.rs @@ -5,9 +5,13 @@ //! C header: [`include/linux/blkdev.h`](srctree/include/linux/blkdev.h) //! C header: [`include/linux/blk_mq.h`](srctree/include/linux/blk_mq.h) -use crate::block::mq::{raw_writer::RawWriter, Operations, TagSet}; -use crate::{bindings, error::from_err_ptr, error::Result, sync::Arc}; -use crate::{error, static_lock_class}; +use crate::{ + bindings, + block::mq::{raw_writer::RawWriter, Operations, TagSet}, + error::{self, from_err_ptr, Result}, + static_lock_class, + sync::Arc, +}; use core::fmt::{self, Write}; /// A builder for [`GenDisk`]. |