[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230224-rust-arc-v1-0-568eea613a41@asahilina.net>
Date: Fri, 24 Feb 2023 16:59:32 +0900
From: Asahi Lina <lina@...hilina.net>
To: Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Wedson Almeida Filho <wedsonaf@...il.com>,
Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>
Cc: rust-for-linux@...r.kernel.org, linux-kernel@...r.kernel.org,
asahi@...ts.linux.dev, Asahi Lina <lina@...hilina.net>
Subject: [PATCH 0/2] rust: sync: Arc: Any downcasting and assume_init()
Hi everyone,
This short series is part of the set of dependencies for the drm/asahi
Apple M1/M2 GPU driver.
The two patches simply add two missing features to the kernel Arc
implementation which are present in the Rust std version: `Any`
downcasting and `assume_init()`.
Signed-off-by: Asahi Lina <lina@...hilina.net>
---
Asahi Lina (2):
rust: sync: arc: implement Arc<dyn Any + Send + Sync>::downcast()
rust: sync: arc: Add UniqueArc<MaybeUninit<T>::assume_init()
rust/kernel/sync/arc.rs | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
---
base-commit: 83f978b63fa7ad474ca22d7e2772c5988101c9bd
change-id: 20230224-rust-arc-ba3c26ed4e6a
Thank you,
~~ Lina
Powered by blists - more mailing lists