Re: [PATCH] rust: Enable the new_uninit feature for kernel and driver crates

From: Vincenzo Palazzo
Date: Wed Mar 01 2023 - 12:24:35 EST


> The unstable new_uninit feature enables various library APIs to create
> uninitialized containers, such as `Box::assume_init()`. This is
> necessary to build abstractions that directly initialize memory at the
> target location, instead of doing copies through the stack.
>
> Will be used by the DRM scheduler abstraction in the kernel crate, and
> by field-wise initialization (e.g. using `place!()` or a future
> replacement macro which may itself live in `kernel`) in driver crates.
>
> See [1] [2] [3] for background information.
>
> [1] https://github.com/Rust-for-Linux/linux/issues/879
> [2] https://github.com/Rust-for-Linux/linux/issues/2
> [3] https://github.com/rust-lang/rust/issues/63291
>
> Signed-off-by: Asahi Lina <lina@xxxxxxxxxxxxx>
> ---

Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@xxxxxxxxx>