Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: drm: Update AlwaysRefCounted imports to use sync::aref

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>

authored by

Shankari Anand and committed by
Alice Ryhl
a625a898 85927649

+1 -1
+1 -1
rust/kernel/drm/gem/mod.rs
··· 253 253 } 254 254 255 255 // SAFETY: Instances of `Object<T>` are always reference-counted. 256 - unsafe impl<T: DriverObject> crate::types::AlwaysRefCounted for Object<T> { 256 + unsafe impl<T: DriverObject> crate::sync::aref::AlwaysRefCounted for Object<T> { 257 257 fn inc_ref(&self) { 258 258 // SAFETY: The existence of a shared reference guarantees that the refcount is non-zero. 259 259 unsafe { bindings::drm_gem_object_get(self.as_raw()) };