Re: [PATCH] rust: iommu: replace core::mem::zeroed with pin_init::zeroed
Miguel Ojeda <[email protected]> Mon, 29 Jun 2026 21:51:02 +0200
| Newsgroups | dev.linux.lists.linux-kernel-mentees,dev.linux.lists.iommu,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <CANiq72m80vip+hz5RngvgH4VxU30amzS-ePr6KVKwKvhf3=Ycg@mail.gmail.com> |
On Mon, Jun 29, 2026 at 9:46 PM Nicolás Antinori <[email protected]> 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