Re: [PATCH] rust: miscdevice: update ARef import to sync::aref

From: Alice Ryhl
Date: Tue Aug 19 2025 - 07:54:41 EST


On Mon, Aug 18, 2025 at 06:58:06PM +0530, Shankari Anand wrote:
> Update the import of `ARef` in misc_device sample to use
> `sync::aref` instead of `types`.
>
> This is part of the ongoing effort to move `ARef` and
> `AlwaysRefCounted` to the `sync` module for better modularity
> and type organization.
>
> Suggested-by: Benno Lossin <lossin@xxxxxxxxxx>
> Link: https://github.com/Rust-for-Linux/linux/issues/1173
> Signed-off-by: Shankari Anand <shankari.ak0208@xxxxxxxxx>

Greg, I believe this should go through miscdevice. It's not going
through a shared tree.

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>