diff options
| author | Shankari Anand <shankari.ak0208@gmail.com> | 2025-11-23 14:54:37 +0530 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2025-12-18 17:31:51 +0100 |
| commit | 1b89d4a6bb4cd7cfd7eb2e3621f04fda956e4ef3 (patch) | |
| tree | ccbbf7c43b5884a534916457c09d5cb972eb5275 /samples/rust | |
| parent | 2da67beda68776842fd0a26f2374e42a5e9b12c8 (diff) | |
samples: rust: debugfs: Update ARef imports to use sync::aref
Update call sites in `rust_debugfs.rs` to import `ARef`
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://patch.msgid.link/20251123092438.182251-10-shankari.ak0208@gmail.com
[ Add 'debugfs' to the commit subject; be consistent with the existing
import style for now. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'samples/rust')
| -rw-r--r-- | samples/rust/rust_debugfs.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/rust/rust_debugfs.rs b/samples/rust/rust_debugfs.rs index 025e8f9d12de..8d190952984f 100644 --- a/samples/rust/rust_debugfs.rs +++ b/samples/rust/rust_debugfs.rs @@ -37,9 +37,10 @@ use kernel::debugfs::{Dir, File}; use kernel::new_mutex; use kernel::prelude::*; use kernel::sizes::*; +use kernel::sync::aref::ARef; use kernel::sync::atomic::{Atomic, Relaxed}; use kernel::sync::Mutex; -use kernel::{acpi, device::Core, of, platform, str::CString, types::ARef}; +use kernel::{acpi, device::Core, of, platform, str::CString}; kernel::module_platform_driver! { type: RustDebugFs, |
