Re: [PATCH] rust: acpi: replace `core::mem::zeroed` with `pin_init::zeroed`

From: Rafael J. Wysocki
Date: Mon Oct 27 2025 - 15:39:02 EST


On Mon, Oct 20, 2025 at 1:26 PM Miguel Ojeda
<miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>
> On Mon, Oct 20, 2025 at 5:12 AM Siyuan Huang <huangsiyuan@xxxxxxxxxx> wrote:
> >
> > All types in `bindings` implement `Zeroable` if they can, so use
> > `pin_init::zeroed` instead of relying on `unsafe` code.
> >
> > If this ends up not compiling in the future, something in bindgen or on
> > the C side changed and is most likely incorrect.
> >
> > Link: https://github.com/Rust-for-Linux/linux/issues/1189
> > Suggested-by: Benno Lossin <lossin@xxxxxxxxxx>
> > Signed-off-by: Siyuan Huang <huangsiyuan@xxxxxxxxxx>
>
> Rafael: I guess you will take this; otherwise, please let me know -- thanks!

Applied as 6.19 material, thanks!