[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a8cf6c32-c270-43b7-998e-ab8558278621@kernel.org>
Date: Fri, 31 Oct 2025 10:55:40 +0100
From: Danilo Krummrich <dakr@...nel.org>
To: moritz.zielke@...il.com
Cc: Rob Herring <robh@...nel.org>, Saravana Kannan <saravanak@...gle.com>,
Miguel Ojeda <ojeda@...nel.org>, Alex Gaynor <alex.gaynor@...il.com>,
Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Andreas Hindborg <a.hindborg@...nel.org>, Alice Ryhl <aliceryhl@...gle.com>,
Trevor Gross <tmgross@...ch.edu>, Benno Lossin <lossin@...nel.org>,
devicetree@...r.kernel.org, rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] rust: of: replace `core::mem::zeroed` with
`pin_init::zeroed`
On 10/31/25 10:51 AM, Moritz Zielke via B4 Relay wrote:
> From: Moritz Zielke <moritz.zielke@...il.com>
>
> 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@...nel.org>
> Signed-off-by: Moritz Zielke <moritz.zielke@...il.com>
Reviewed-by: Danilo Krummrich <dakr@...nel.org>
Powered by blists - more mailing lists