mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
rust: block: rnull: use vertical import style
Convert `use` imports to vertical layout for better readability and maintainability. Signed-off-by: Alvin Sun <alvin.sun@linux.dev> Link: https://msgid.link/20260521-miscdev-use-format-v3-6-56240ca70d0c@linux.dev Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org> Link: https://patch.msgid.link/20260929-rust-block-for-v7-4-rc1-b4-v1-3-642a4c1aebd7@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
06e75dbe89
commit
a463f71c49
|
|
@ -2,15 +2,27 @@
|
|||
|
||||
use super::NullBlkDevice;
|
||||
use kernel::{
|
||||
block::mq::gen_disk::{GenDisk, GenDiskBuilder},
|
||||
configfs::{self, AttributeOperations},
|
||||
block::mq::gen_disk::{
|
||||
GenDisk,
|
||||
GenDiskBuilder, //
|
||||
},
|
||||
configfs::{
|
||||
self,
|
||||
AttributeOperations, //
|
||||
},
|
||||
configfs_attrs,
|
||||
fmt::{self, Write as _},
|
||||
fmt::{
|
||||
self,
|
||||
Write as _, //
|
||||
},
|
||||
new_mutex,
|
||||
page::PAGE_SIZE,
|
||||
prelude::*,
|
||||
str::{kstrtobool_bytes, CString},
|
||||
sync::Mutex,
|
||||
str::{
|
||||
kstrtobool_bytes,
|
||||
CString, //
|
||||
},
|
||||
sync::Mutex, //
|
||||
};
|
||||
|
||||
pub(crate) fn subsystem() -> impl PinInit<kernel::configfs::Subsystem<Config>, Error> {
|
||||
|
|
|
|||
|
|
@ -10,12 +10,19 @@
|
|||
self,
|
||||
mq::{
|
||||
self,
|
||||
gen_disk::{self, GenDisk},
|
||||
Operations, TagSet,
|
||||
},
|
||||
gen_disk::{
|
||||
self,
|
||||
GenDisk, //
|
||||
},
|
||||
Operations,
|
||||
TagSet, //
|
||||
}, //
|
||||
},
|
||||
prelude::*,
|
||||
sync::{aref::ARef, Arc},
|
||||
sync::{
|
||||
aref::ARef,
|
||||
Arc, //
|
||||
}, //
|
||||
};
|
||||
|
||||
module! {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user