Re: [PATCH v2] rust: acpi: replace manual zero-initialization with `pin_init::zeroed()`
From: Danilo Krummrich
Date: Thu Jan 08 2026 - 10:09:06 EST
On 1/8/26 3:00 PM, Rafael J. Wysocki 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: Danilo Krummrich <dakr@xxxxxxxxxx>