]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust,cred: update AlwaysRefCounted import to sync::aref
authorShankari Anand <shankari.ak0208@gmail.com>
Sat, 16 Aug 2025 11:44:09 +0000 (17:14 +0530)
committerPaul Moore <paul@paul-moore.com>
Tue, 19 Aug 2025 19:59:36 +0000 (15:59 -0400)
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>
rust/kernel/cred.rs

index 2599f01e8b285f2106aefd27c315ae2aff25293c..4a2229542fb73d7ddd402bcce1a4f0d8f3042e71 100644 (file)
@@ -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`.
 ///