Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Andreas Hindborg and committed by
Jens Axboe
f4b72f15 60e1eeed

+7 -3
+7 -3
rust/kernel/block/mq/gen_disk.rs
··· 5 5 //! C header: [`include/linux/blkdev.h`](srctree/include/linux/blkdev.h) 6 6 //! C header: [`include/linux/blk_mq.h`](srctree/include/linux/blk_mq.h) 7 7 8 - use crate::block::mq::{raw_writer::RawWriter, Operations, TagSet}; 9 - use crate::{bindings, error::from_err_ptr, error::Result, sync::Arc}; 10 - use crate::{error, static_lock_class}; 8 + use crate::{ 9 + bindings, 10 + block::mq::{raw_writer::RawWriter, Operations, TagSet}, 11 + error::{self, from_err_ptr, Result}, 12 + static_lock_class, 13 + sync::Arc, 14 + }; 11 15 use core::fmt::{self, Write}; 12 16 13 17 /// A builder for [`GenDisk`].