Re: [PATCH v2] rust: acpi: replace manual zero-initialization with `pin_init::zeroed()`
From: Alice Ryhl
Date: Thu Jan 08 2026 - 11:03:19 EST
On Thu, Jan 8, 2026 at 3:00 PM Rafael J. Wysocki <rafael@xxxxxxxxxx> wrote:
>
> On Mon, Dec 1, 2025 at 4:52 PM Atharv Dubey <atharvd440@xxxxxxxxx> wrote:
> >
> > Use `pin_init::zeroed()` instead of `core::mem::zeroed()` for initializing
> > `acpi_device_id`. This removes an explicit unsafe block and aligns ACPI
> > initialization with the pin-init conversion used across the Rust tree.
> >
> > Link: https://github.com/Rust-for-Linux/linux/issues/1189
> > Signed-off-by: Atharv Dubey <atharvd440@xxxxxxxxx>
>
> A Rust-side ACK or equivalent would be welcome.
Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>