]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: drm: Update AlwaysRefCounted imports to use sync::aref
authorShankari Anand <shankari.ak0208@gmail.com>
Sun, 23 Nov 2025 09:24:32 +0000 (14:54 +0530)
committerAlice Ryhl <aliceryhl@google.com>
Thu, 18 Dec 2025 07:51:57 +0000 (07:51 +0000)
Update call sites to import `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: https://github.com/Rust-for-Linux/linux/issues/1173
Signed-off-by: Shankari Anand <shankari.ak0208@gmail.com>
Link: https://patch.msgid.link/20251123092438.182251-5-shankari.ak0208@gmail.com
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
rust/kernel/drm/gem/mod.rs

index a7f682e95c0184da3a596290276a75932fef6467..76e6c40d525e8aa5c30fa1881641973b061af5fa 100644 (file)
@@ -253,7 +253,7 @@ impl<T: DriverObject> Object<T> {
 }
 
 // SAFETY: Instances of `Object<T>` are always reference-counted.
-unsafe impl<T: DriverObject> crate::types::AlwaysRefCounted for Object<T> {
+unsafe impl<T: DriverObject> crate::sync::aref::AlwaysRefCounted for Object<T> {
     fn inc_ref(&self) {
         // SAFETY: The existence of a shared reference guarantees that the refcount is non-zero.
         unsafe { bindings::drm_gem_object_get(self.as_raw()) };