]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: dma: Update ARef and AlwaysRefCounted imports from sync::aref
authorShankari Anand <shankari.ak0208@gmail.com>
Thu, 14 Aug 2025 10:41:33 +0000 (16:11 +0530)
committerDanilo Krummrich <dakr@kernel.org>
Fri, 15 Aug 2025 20:53:05 +0000 (22:53 +0200)
Update call sites in the dma subsystem 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>
Link: https://lore.kernel.org/r/20250814104133.350093-1-shankari.ak0208@gmail.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/dma.rs
samples/rust/rust_dma.rs

index 2bc8ab51ec280f35fcf70cd82cf1a186076a2792..68fe6762442438e008e8a2119b4699da0a78a9c5 100644 (file)
@@ -9,8 +9,8 @@ use crate::{
     device::{Bound, Core},
     error::{to_result, Result},
     prelude::*,
+    sync::aref::ARef,
     transmute::{AsBytes, FromBytes},
-    types::ARef,
 };
 
 /// Trait to be implemented by DMA capable bus devices.
index c5e7cce68654027b2a0f9da34f7e4985cceeff29..997a9c4cf2b3d9aacbdfa6c07c53f50fedd3271d 100644 (file)
@@ -10,7 +10,7 @@ use kernel::{
     dma::{CoherentAllocation, Device, DmaMask},
     pci,
     prelude::*,
-    types::ARef,
+    sync::aref::ARef,
 };
 
 struct DmaSampleDriver {