mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-21 23:57:36 -04:00
rust: miscdevice: remove redundant imports
Drop `Error`, `Result`, `Pin`, `c_int`, `c_long`, `c_uint`, and `c_ulong` imports already provided by `kernel::prelude`. Signed-off-by: Alvin Sun <alvin.sun@linux.dev> Reviewed-by: Onur Özkan <work@onurozkan.dev> Link: https://patch.msgid.link/20260520-miscdev-use-format-v2-3-64dc48fc1345@linux.dev Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
bc58905eb0
commit
7afb5806b8
@@ -13,16 +13,8 @@
|
||||
device::Device,
|
||||
error::{
|
||||
to_result,
|
||||
Error,
|
||||
Result,
|
||||
VTABLE_DEFAULT_ERROR, //
|
||||
},
|
||||
ffi::{
|
||||
c_int,
|
||||
c_long,
|
||||
c_uint,
|
||||
c_ulong, //
|
||||
},
|
||||
fs::{
|
||||
File,
|
||||
Kiocb, //
|
||||
@@ -39,10 +31,7 @@
|
||||
Opaque, //
|
||||
},
|
||||
};
|
||||
use core::{
|
||||
marker::PhantomData,
|
||||
pin::Pin, //
|
||||
};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Options for creating a misc device.
|
||||
#[derive(Copy, Clone)]
|
||||
|
||||
Reference in New Issue
Block a user