rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] rust: sync: Arc: Any downcasting and assume_init()
@ 2023-04-03 10:01 Asahi Lina
  2023-04-03 10:01 ` [PATCH v2 1/2] rust: sync: arc: Implement Arc<dyn Any + Send + Sync>::downcast() Asahi Lina
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Asahi Lina @ 2023-04-03 10:01 UTC (permalink / raw)
  To: Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho, Boqun Feng,
	Gary Guo, Björn Roy Baron
  Cc: Andreas Hindborg, Vincenzo Palazzo, Martin Rodriguez Reboredo,
	Benno Lossin, rust-for-linux, linux-kernel, asahi, Asahi Lina

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@asahilina.net>
---
Changes in v2:
- #1: Moved the new function to a separate file, to keep the licensing
  clearer.
- #2: Replaced the safety comment with Benno's, from his pin-init series
  (we both wrote the same patch).
- Link to v1: https://lore.kernel.org/r/20230224-rust-arc-v1-0-568eea613a41@asahilina.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            | 13 +++++++++++++
 rust/kernel/sync/arc/std_vendor.rs | 28 ++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
---
base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
change-id: 20230224-rust-arc-ba3c26ed4e6a

Thank you,
~~ Lina


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-10  3:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-03 10:01 [PATCH v2 0/2] rust: sync: Arc: Any downcasting and assume_init() Asahi Lina
2023-04-03 10:01 ` [PATCH v2 1/2] rust: sync: arc: Implement Arc<dyn Any + Send + Sync>::downcast() Asahi Lina
2023-04-03 10:01 ` [PATCH v2 2/2] rust: sync: arc: Add UniqueArc<MaybeUninit<T>::assume_init() Asahi Lina
2023-04-03 15:26   ` Gary Guo
2023-04-10  3:47 ` [PATCH v2 0/2] rust: sync: Arc: Any downcasting and assume_init() Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).