]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
block: rnull: remove imports available via prelude
authorGary Guo <gary@garyguo.net>
Fri, 23 Jan 2026 17:19:41 +0000 (17:19 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Jan 2026 16:45:42 +0000 (09:45 -0700)
These imports are already in scope by importing `kernel::prelude::*` and
does not need to be imported separately.

Signed-off-by: Gary Guo <gary@garyguo.net>
Acked-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rnull/configfs.rs
drivers/block/rnull/rnull.rs

index 2f5a7da03af5dc292c394d7ad80a5548d0c82dbd..158f38bbbb8b737bd7eca07e4e2529e836a50c1d 100644 (file)
@@ -13,7 +13,6 @@ use kernel::{
     str::{kstrtobool_bytes, CString},
     sync::Mutex,
 };
-use pin_init::PinInit;
 
 pub(crate) fn subsystem() -> impl PinInit<kernel::configfs::Subsystem<Config>, Error> {
     let item_type = configfs_attrs! {
index a9d5e575a2c43ec3ba9efa4890f810646fd01671..0ca8715febe833a3c87ad90a21286a38df6f0763 100644 (file)
@@ -14,12 +14,9 @@ use kernel::{
             Operations, TagSet,
         },
     },
-    error::Result,
-    pr_info,
     prelude::*,
     sync::{aref::ARef, Arc},
 };
-use pin_init::PinInit;
 
 module! {
     type: NullBlkModule,