Re: [PATCH v3 05/11] rust: block: replace `core::mem::zeroed` with `pin_init::zeroed`

From: Andreas Hindborg
Date: Wed Sep 17 2025 - 06:57:08 EST


"Benno Lossin" <lossin@xxxxxxxxxx> writes:

> 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.
>
> Signed-off-by: Benno Lossin <lossin@xxxxxxxxxx>

Acked-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>


Best regards,
Andreas Hindborg