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.

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>

authored by

Shankari Anand and committed by
Paul Moore
046c5617 e73f759d

+1 -5
+1 -5
rust/kernel/cred.rs
··· 8 8 //! 9 9 //! Reference: <https://www.kernel.org/doc/html/latest/security/credentials.html> 10 10 11 - use crate::{ 12 - bindings, 13 - task::Kuid, 14 - types::{AlwaysRefCounted, Opaque}, 15 - }; 11 + use crate::{bindings, sync::aref::AlwaysRefCounted, task::Kuid, types::Opaque}; 16 12 17 13 /// Wraps the kernel's `struct cred`. 18 14 ///