[0/2] rust: sync: Arc: Any downcasting and assume_init()

Message ID 20230224-rust-arc-v1-0-568eea613a41@asahilina.net
Headers
Series rust: sync: Arc: Any downcasting and assume_init() |

Message

Asahi Lina Feb. 24, 2023, 7:59 a.m. UTC
  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>
---
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