Shankari Anand
2025-Nov-23 09:26 UTC
[PATCH 06/10] rust: kernel: Update ARef and AlwaysRefCounted imports to use sync::aref
Update call sites in `pwm.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 at kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1173
Signed-off-by: Shankari Anand <shankari.ak0208 at gmail.com>
---
rust/kernel/pwm.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/rust/kernel/pwm.rs b/rust/kernel/pwm.rs
index cb00f8a8765c..1605d13d5d64 100644
--- a/rust/kernel/pwm.rs
+++ b/rust/kernel/pwm.rs
@@ -13,7 +13,8 @@
devres,
error::{self, to_result},
prelude::*,
- types::{ARef, AlwaysRefCounted, Opaque}, //
+ sync::aref::{ARef, AlwaysRefCounted},
+ types::Opaque, //
};
use core::{marker::PhantomData, ptr::NonNull};
--
2.34.1
Uwe Kleine-König
2025-Nov-24 16:10 UTC
[PATCH 06/10] rust: kernel: Update ARef and AlwaysRefCounted imports to use sync::aref
Hello, I suggest $Subject ~= s/kernel/pwm/. On Sun, Nov 23, 2025 at 02:54:34PM +0530, Shankari Anand wrote:> Update call sites in `pwm.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 at kernel.org> > Link: https://github.com/Rust-for-Linux/linux/issues/1173 > Signed-off-by: Shankari Anand <shankari.ak0208 at gmail.com> > --- > rust/kernel/pwm.rs | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/rust/kernel/pwm.rs b/rust/kernel/pwm.rs > index cb00f8a8765c..1605d13d5d64 100644 > --- a/rust/kernel/pwm.rs > +++ b/rust/kernel/pwm.rs > @@ -13,7 +13,8 @@ > devres, > error::{self, to_result}, > prelude::*, > - types::{ARef, AlwaysRefCounted, Opaque}, // > + sync::aref::{ARef, AlwaysRefCounted}, > + types::Opaque, // > }; > use core::{marker::PhantomData, ptr::NonNull};having no clue about Rust: Can this patch be applied independent of the others via the pwm tree? If I understand correctly it's only patch #10 that depends on the previous patches, right? Is there already a merge plan for this series? Best regards Uwe -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: not available URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20251124/8eb23143/attachment-0001.sig>