mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
rust/drm: Remove imports covered by prelude::*
This just removes any explicit imports of items in files that are already being pulled in by `use prelude::*;`. There should be no functional changes in this patch. Signed-off-by: Lyude Paul <lyude@redhat.com> Link: https://patch.msgid.link/20260122214316.3281257-2-lyude@redhat.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
parent
b7a124928b
commit
6ad005ce69
|
|
@ -12,10 +12,7 @@
|
|||
self,
|
||||
driver::AllocImpl, //
|
||||
},
|
||||
error::{
|
||||
from_err_ptr,
|
||||
Result, //
|
||||
},
|
||||
error::from_err_ptr,
|
||||
prelude::*,
|
||||
sync::aref::{
|
||||
ARef,
|
||||
|
|
|
|||
|
|
@ -9,14 +9,10 @@
|
|||
device,
|
||||
devres,
|
||||
drm,
|
||||
error::{
|
||||
to_result,
|
||||
Result, //
|
||||
},
|
||||
error::to_result,
|
||||
prelude::*,
|
||||
sync::aref::ARef, //
|
||||
};
|
||||
use macros::vtable;
|
||||
|
||||
/// Driver use the GEM memory manager. This should be set for all modern drivers.
|
||||
pub(crate) const FEAT_GEM: u32 = bindings::drm_driver_feature_DRIVER_GEM;
|
||||
|
|
|
|||
|
|
@ -7,14 +7,10 @@
|
|||
use crate::{
|
||||
bindings,
|
||||
drm,
|
||||
error::Result,
|
||||
prelude::*,
|
||||
types::Opaque, //
|
||||
};
|
||||
use core::{
|
||||
marker::PhantomData,
|
||||
pin::Pin, //
|
||||
};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Trait that must be implemented by DRM drivers to represent a DRM File (a client instance).
|
||||
pub trait DriverFile {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
//! C header: [`include/drm/drm_gem.h`](srctree/include/drm/drm_gem.h)
|
||||
|
||||
use crate::{
|
||||
alloc::flags::*,
|
||||
bindings,
|
||||
drm::{
|
||||
self,
|
||||
|
|
@ -14,10 +13,7 @@
|
|||
AllocOps, //
|
||||
},
|
||||
},
|
||||
error::{
|
||||
to_result,
|
||||
Result, //
|
||||
},
|
||||
error::to_result,
|
||||
prelude::*,
|
||||
sync::aref::{
|
||||
ARef,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user