]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
rust: sync: Update ARef and AlwaysRefCounted imports from sync::aref
authorShankari Anand <shankari.ak0208@gmail.com>
Mon, 18 Aug 2025 19:10:34 +0000 (00:40 +0530)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 7 Sep 2025 22:11:19 +0000 (00:11 +0200)
Update the in-file reference of sync/aref.rs 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: https://github.com/Rust-for-Linux/linux/issues/1173
Signed-off-by: Shankari Anand <shankari.ak0208@gmail.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/sync/aref.rs

index dbd77bb68617cab786fe4a1168d697e30a6de299..c53d42cb0734852efb51137610b739bce6942897 100644 (file)
@@ -97,7 +97,7 @@ impl<T: AlwaysRefCounted> ARef<T> {
     ///
     /// ```
     /// use core::ptr::NonNull;
-    /// use kernel::types::{ARef, AlwaysRefCounted};
+    /// use kernel::sync::aref::{ARef, AlwaysRefCounted};
     ///
     /// struct Empty {}
     ///