]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: types: remove temporary re-exports of ARef and AlwaysRefCounted
authorShankari Anand <shankari.ak0208@gmail.com>
Fri, 2 Jan 2026 20:27:14 +0000 (01:57 +0530)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 15 Mar 2026 19:30:29 +0000 (20:30 +0100)
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>
rust/kernel/types.rs

index 9c5e7dbf16323f63ebdbb33bee26440cff5bef43..4329d3c2c2e5078e131367d402187e2a5d37aef8 100644 (file)
@@ -11,8 +11,6 @@ use core::{
 };
 use pin_init::{PinInit, Wrapper, Zeroable};
 
-pub use crate::sync::aref::{ARef, AlwaysRefCounted};
-
 /// Used to transfer ownership to and from foreign (non-Rust) languages.
 ///
 /// Ownership is transferred from Rust to a foreign language by calling [`Self::into_foreign`] and