Re: [PATCH] rust: iommu: replace core::mem::zeroed with pin_init::zeroed
From: Miguel Ojeda
Date: Mon Jun 29 2026 - 15:51:22 EST
On Mon, Jun 29, 2026 at 9:46 PM Nicolás Antinori
<nico.antinori.7@xxxxxxxxx> wrote:
>
> If it is ok, I can send a patch modifying the doc comments to link both
> functions, noting that the const version should be used in const
> contexts/pinned objects and that `Zeroable::zeroed()` should be
> preferred when possible (as Gary commented in [1]).
Of course, please always feel free to send a patch (it depends if the
maintainers end up accepting it, in this case Benno/Gary, but sending
is OK :)
You can also send it as a PR to the pin-init repository -- I think
they still accept both patches here and PRs there, but a PR there may
be easier for them.
Thanks!
Cheers,
Miguel