Re: [PATCH v3 05/11] rust: block: replace `core::mem::zeroed` with `pin_init::zeroed`
From: Andreas Hindborg <a.hindborg@kernel.org>
Date: 2025-09-17 10:56:57
Also in:
linux-block, lkml
From: Andreas Hindborg <a.hindborg@kernel.org>
Date: 2025-09-17 10:56:57
Also in:
linux-block, lkml
"Benno Lossin" [off-list ref] 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@kernel.org>
Acked-by: Andreas Hindborg <a.hindborg@kernel.org> Best regards, Andreas Hindborg