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.

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>

authored by

Shankari Anand and committed by
Danilo Krummrich
1b89d4a6 2da67bed

+2 -1
+2 -1
samples/rust/rust_debugfs.rs
··· 37 37 use kernel::new_mutex; 38 38 use kernel::prelude::*; 39 39 use kernel::sizes::*; 40 + use kernel::sync::aref::ARef; 40 41 use kernel::sync::atomic::{Atomic, Relaxed}; 41 42 use kernel::sync::Mutex; 42 - use kernel::{acpi, device::Core, of, platform, str::CString, types::ARef}; 43 + use kernel::{acpi, device::Core, of, platform, str::CString}; 43 44 44 45 kernel::module_platform_driver! { 45 46 type: RustDebugFs,