Skip to content

Commit bba9541

Browse files
Shankari02brauner
authored andcommitted
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: Rust-for-Linux#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>
1 parent 8f5ae30 commit bba9541

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

rust/kernel/pid_namespace.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
//! C header: [`include/linux/pid_namespace.h`](srctree/include/linux/pid_namespace.h) and
88
//! [`include/linux/pid.h`](srctree/include/linux/pid.h)
99
10-
use crate::{
11-
bindings,
12-
types::{AlwaysRefCounted, Opaque},
13-
};
10+
use crate::{bindings, sync::aref::AlwaysRefCounted, types::Opaque};
1411
use core::ptr;
1512

1613
/// Wraps the kernel's `struct pid_namespace`. Thread safe.

0 commit comments

Comments
 (0)