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: types: remove temporary re-exports of ARef and AlwaysRefCounted

Remove the temporary re-exports of `ARef` and `AlwaysRefCounted`
from `types.rs` now that all in-tree users have been updated to
import them directly from `sync::aref`.

These re-exports were originally added to avoid breaking the
kernel build during the transition period while call sites were
incrementally migrated. With all users updated, they are no
longer needed.

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>
Link: https://patch.msgid.link/20260102202714.184223-5-shankari.ak0208@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

authored by

Shankari Anand and committed by
Miguel Ojeda
79e25710 ebbed9d0

-2
-2
rust/kernel/types.rs
··· 11 11 }; 12 12 use pin_init::{PinInit, Wrapper, Zeroable}; 13 13 14 - pub use crate::sync::aref::{ARef, AlwaysRefCounted}; 15 - 16 14 /// Used to transfer ownership to and from foreign (non-Rust) languages. 17 15 /// 18 16 /// Ownership is transferred from Rust to a foreign language by calling [`Self::into_foreign`] and