summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorShankari Anand <shankari.ak0208@gmail.com>2025-08-16 17:14:09 +0530
committerPaul Moore <paul@paul-moore.com>2025-08-19 15:59:36 -0400
commit046c56178a73ad7883fc38e6caa0474025c0fe86 (patch)
tree2bcdf0bcf50360a8e312577c5d64ccfb8764c5b2 /rust/kernel
parente73f759d2e98c729ca6f98dad4ca6d7b9120e576 (diff)
rust,cred: update AlwaysRefCounted import to sync::aref
Update the import of `AlwaysRefCounted` in `cred.rs` 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. 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> Acked-by: Serge Hallyn <serge@hallyn.com> Reviewed-by: Benno Lossin <lossin@kernel.org> Reviewed-by: Alice Ryhl <aliceryhl@google.com> [PM: subj tweak] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'rust/kernel')
-rw-r--r--rust/kernel/cred.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/rust/kernel/cred.rs b/rust/kernel/cred.rs
index 2599f01e8b28..4a2229542fb7 100644
--- a/rust/kernel/cred.rs
+++ b/rust/kernel/cred.rs
@@ -8,11 +8,7 @@
//!
//! Reference: <https://www.kernel.org/doc/html/latest/security/credentials.html>
-use crate::{
- bindings,
- task::Kuid,
- types::{AlwaysRefCounted, Opaque},
-};
+use crate::{bindings, sync::aref::AlwaysRefCounted, task::Kuid, types::Opaque};
/// Wraps the kernel's `struct cred`.
///