Skip to content

Commit 6b35936

Browse files
LyudeDarksonn
authored andcommitted
rust: drm: gem: Drop Object::SIZE
Drive-by fix, it doesn't seem like anything actually uses this constant anymore. Signed-off-by: Lyude Paul <lyude@redhat.com> Reviewed-by: Danilo Krummrich <dakr@kernel.org> Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://lore.kernel.org/r/20250908185239.135849-4-lyude@redhat.com Signed-off-by: Alice Ryhl <aliceryhl@google.com>
1 parent 1ed10db commit 6b35936

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

rust/kernel/drm/gem/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::{
1212
prelude::*,
1313
types::{ARef, AlwaysRefCounted, Opaque},
1414
};
15-
use core::{mem, ops::Deref, ptr::NonNull};
15+
use core::{ops::Deref, ptr::NonNull};
1616

1717
/// A type alias for retrieving a [`Driver`]s [`DriverFile`] implementation from its
1818
/// [`DriverObject`] implementation.
@@ -197,9 +197,6 @@ pub struct Object<T: DriverObject + Send + Sync> {
197197
}
198198

199199
impl<T: DriverObject> Object<T> {
200-
/// The size of this object's structure.
201-
pub const SIZE: usize = mem::size_of::<Self>();
202-
203200
const OBJECT_FUNCS: bindings::drm_gem_object_funcs = bindings::drm_gem_object_funcs {
204201
free: Some(Self::free_callback),
205202
open: Some(open_callback::<T>),

0 commit comments

Comments
 (0)