[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <DEMKEIY16GSM.39EIVLU1ZW5WO@nvidia.com>
Date: Mon, 01 Dec 2025 12:37:27 +0900
From: "Alexandre Courbot" <acourbot@...dia.com>
To: "Atharv Dubey" <atharvd440@...il.com>, <arnd@...db.de>,
<gregkh@...uxfoundation.org>
Cc: <ojeda@...nel.org>, <alex.gaynor@...il.com>, <boqun.feng@...il.com>,
<gary@...yguo.net>, <bjorn3_gh@...tonmail.com>, <lossin@...nel.org>,
<a.hindborg@...nel.org>, <aliceryhl@...gle.com>, <tmgross@...ch.edu>,
<dakr@...nel.org>, <rust-for-linux@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] rust: miscdevice: use `pin_init::zeroed()` for C
type initialization
On Sat Nov 29, 2025 at 9:15 PM JST, Atharv Dubey wrote:
> Replace manual zero-initialization using
> `MaybeUninit::zeroed().assume_init()` with `pin_init::zeroed()`.
> The `pin_init` helper provides a safer and clearer API for
> zero-initializing C structs without requiring an `unsafe` block.
>
> Link: https://github.com/Rust-for-Linux/linux/issues/1189
> Signed-off-by: Atharv Dubey <atharvd440@...il.com>
Reviewed-by: Alexandre Courbot <acourbot@...dia.com>
Powered by blists - more mailing lists