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: sync: Update ARef and AlwaysRefCounted imports from sync::aref

Update the in-file reference of sync/aref.rs to import `ARef` and
`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>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

authored by

Shankari Anand and committed by
Miguel Ojeda
8a7c11af f1d3703f

+1 -1
+1 -1
rust/kernel/sync/aref.rs
··· 97 97 /// 98 98 /// ``` 99 99 /// use core::ptr::NonNull; 100 - /// use kernel::types::{ARef, AlwaysRefCounted}; 100 + /// use kernel::sync::aref::{ARef, AlwaysRefCounted}; 101 101 /// 102 102 /// struct Empty {} 103 103 ///