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

From: Miguel Ojeda

Date: Mon Aug 31 2026 - 16:49:50 EST


On Fri, Aug 28, 2026 at 2:25 PM Nils Lehnen <nils.lehnen@xxxxxxxxx> wrote:
>
> Resend of Benno's patch from the Zeroable series [1], as the issue [2]
> asks; same shape as the security.rs resend Miguel confirmed today [3].
> Rebased onto rust-next: one context conflict from the
> `as_bytes_with_nul` -> `to_bytes_with_nul` rename, resolved keeping the
> current name; the change itself is Benno's, unmodified. An incremental
> defconfig build with CONFIG_RUST=y passes, so `pin_init::zeroed()` is
> fine in the `const fn` context.

Looks fine, thanks!

Rob, Saravana: it would be nice to get this done, please let me know
if you prefer me to pick it up. Thanks!

Cheers,
Miguel