]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: workqueue: use new sync::aref path for imports
authorAlice Ryhl <aliceryhl@google.com>
Thu, 26 Mar 2026 15:25:36 +0000 (15:25 +0000)
committerAlice Ryhl <aliceryhl@google.com>
Thu, 26 Mar 2026 15:45:34 +0000 (15:45 +0000)
ARef and AlwaysRefCounted are being moved to sync::aref, and the
re-exports under types are planned to be removed. Thus, update imports
to the new path.

Acked-by: Danilo Krummrich <dakr@kernel.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260326-drm-rust-next-fix-aref-v1-1-7f6f58d2828a@google.com
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
rust/kernel/workqueue.rs

index 4ee4ff56719767cd253733dd9336d179ef445224..7e253b6f299ce3497405c740af9d0568c281b95b 100644 (file)
@@ -189,10 +189,16 @@ use crate::{
     alloc::{AllocError, Flags},
     container_of,
     prelude::*,
-    sync::Arc,
-    sync::LockClassKey,
+    sync::{
+        aref::{
+            ARef,
+            AlwaysRefCounted, //
+        },
+        Arc,
+        LockClassKey, //
+    },
     time::Jiffies,
-    types::{ARef, AlwaysRefCounted, Opaque},
+    types::Opaque,
 };
 use core::{marker::PhantomData, ptr::NonNull};