Skip to content

Commit f1f2a22

Browse files
Shankari02Danilo Krummrich
authored andcommitted
rust: drm: update ARef and AlwaysRefCounted imports from sync::aref
Update call sites in drm to import `ARef` and `AlwaysRefCounted` from `sync::aref` instead of `types`. This aligns with the ongoing effort to move `ARef` and `AlwaysRefCounted` to sync. Suggested-by: Benno Lossin <lossin@kernel.org> Link: Rust-for-Linux/linux#1173 Signed-off-by: Shankari Anand <shankari.ak0208@gmail.com> Reviewed-by: Benno Lossin <lossin@kernel.org> Reviewed-by: Elle Rhumsaa <elle@weathered-steel.dev> Link: https://lore.kernel.org/r/20250815161706.1324860-1-shankari.ak0208@gmail.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
1 parent c8cea43 commit f1f2a22

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

rust/kernel/drm/device.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ use crate::{
1010
error::from_err_ptr,
1111
error::Result,
1212
prelude::*,
13-
types::{ARef, AlwaysRefCounted, Opaque},
13+
sync::aref::{ARef, AlwaysRefCounted},
14+
types::Opaque,
1415
};
1516
use core::{mem, ops::Deref, ptr, ptr::NonNull};
1617

rust/kernel/drm/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::{
88
bindings, device, devres, drm,
99
error::{to_result, Result},
1010
prelude::*,
11-
types::ARef,
11+
sync::aref::ARef,
1212
};
1313
use macros::vtable;
1414

rust/kernel/drm/gem/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ use crate::{
1010
drm::driver::{AllocImpl, AllocOps},
1111
error::{to_result, Result},
1212
prelude::*,
13-
types::{ARef, AlwaysRefCounted, Opaque},
13+
sync::aref::{ARef, AlwaysRefCounted},
14+
types::Opaque,
1415
};
1516
use core::{mem, ops::Deref, ptr::NonNull};
1617

0 commit comments

Comments
 (0)