diff options
| author | Shankari Anand <shankari.ak0208@gmail.com> | 2025-08-18 18:58:06 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-08-19 12:37:21 +0200 |
| commit | 9e57dbcbde250acab44205ee4cc897c4a87c56d9 (patch) | |
| tree | 8727c6055c38f402385654aa37e86a396f922bcf /samples/rust/rust_misc_device.rs | |
| parent | misc: hisi_hikey_usb: Use str_enabled_disabled() in hub_power_ctrl() (diff) | |
| download | linux-9e57dbcbde250acab44205ee4cc897c4a87c56d9.tar.gz linux-9e57dbcbde250acab44205ee4cc897c4a87c56d9.zip | |
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>
Diffstat (limited to 'samples/rust/rust_misc_device.rs')
| -rw-r--r-- | samples/rust/rust_misc_device.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/samples/rust/rust_misc_device.rs b/samples/rust/rust_misc_device.rs index e7ab77448f75..911b9320d3c0 100644 --- a/samples/rust/rust_misc_device.rs +++ b/samples/rust/rust_misc_device.rs @@ -105,8 +105,7 @@ use kernel::{ miscdevice::{MiscDevice, MiscDeviceOptions, MiscDeviceRegistration}, new_mutex, prelude::*, - sync::Mutex, - types::ARef, + sync::{aref::ARef, Mutex}, uaccess::{UserSlice, UserSliceReader, UserSliceWriter}, }; |
