diff options
author | Shankari Anand <shankari.ak0208@gmail.com> | 2025-08-16 17:53:23 +0530 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-08-19 13:08:41 +0200 |
commit | bba95412064207ea3a0ea1776daec6480e5f8b0f (patch) | |
tree | cf0eb6c2996403e67d1d69d298ac3826825f02d5 /rust/kernel | |
parent | 8f5ae30d69d7543eee0d70083daf4de8fe15d585 (diff) |
rust: pid_namespace: update AlwaysRefCounted imports from sync::aref
Update call sites in `pid_namespace.rs` to import
`AlwaysRefCounted` 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://lore.kernel.org/20250816122323.11657-1-shankari.ak0208@gmail.com
Reviewed-by: Benno Lossin <lossin@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'rust/kernel')
-rw-r--r-- | rust/kernel/pid_namespace.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/rust/kernel/pid_namespace.rs b/rust/kernel/pid_namespace.rs index 0e93808e4639..979a9718f153 100644 --- a/rust/kernel/pid_namespace.rs +++ b/rust/kernel/pid_namespace.rs @@ -7,10 +7,7 @@ //! C header: [`include/linux/pid_namespace.h`](srctree/include/linux/pid_namespace.h) and //! [`include/linux/pid.h`](srctree/include/linux/pid.h) -use crate::{ - bindings, - types::{AlwaysRefCounted, Opaque}, -}; +use crate::{bindings, sync::aref::AlwaysRefCounted, types::Opaque}; use core::ptr; /// Wraps the kernel's `struct pid_namespace`. Thread safe. |