Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: miscdevice: update ARef import to sync::aref

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@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>
Link: https://lore.kernel.org/r/20250818132806.134248-1-shankari.ak0208@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Shankari Anand and committed by
Greg Kroah-Hartman
9e57dbcb 89fb7d73

+1 -2
+1 -2
samples/rust/rust_misc_device.rs
··· 105 105 miscdevice::{MiscDevice, MiscDeviceOptions, MiscDeviceRegistration}, 106 106 new_mutex, 107 107 prelude::*, 108 - sync::Mutex, 109 - types::ARef, 108 + sync::{aref::ARef, Mutex}, 110 109 uaccess::{UserSlice, UserSliceReader, UserSliceWriter}, 111 110 }; 112 111