Thread (3 messages) 3 messages, 3 authors, 2026-01-25

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

From: Miguel Ojeda <hidden>
Date: 2026-01-25 19:28:55
Also in: lkml, rust-for-linux

On Fri, Oct 31, 2025 at 10:52 AM Moritz Zielke via B4 Relay
[off-list ref] wrote:
From: Moritz Zielke <redacted>

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@kernel.org>
Signed-off-by: Moritz Zielke <redacted>
These were also sent by Benno, and in the issue he mentions
"re-sending", which usually means just adding your Signed-off-by below
his:

    https://lore.kernel.org/all/20250814093046.2071971-1-lossin@kernel.org/ (local)

But he also mentioned the Suggested-by tag etc., so this is probably OK too.

Cheers,
Miguel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help