From: "Benno Lossin" <lossin@kernel.org>
To: "Ritvik Gupta" <ritvikfoss@gmail.com>, <viresh.kumar@linaro.org>,
<ojeda@kernel.org>, <alex.gaynor@gmail.com>
Cc: <yury.norov@gmail.com>, <boqun.feng@gmail.com>,
<gary@garyguo.net>, <bjorn3_gh@protonmail.com>,
<a.hindborg@kernel.org>, <aliceryhl@google.com>,
<tmgross@umich.edu>, <dakr@kernel.org>,
<rust-for-linux@vger.kernel.org>, <skhan@linuxfoundation.org>,
"Benno Lossin" <benno.lossin@proton.me>
Subject: Re: [PATCH] rust: cpumask: Replace `MaybeUninit` with `Opaque::uninit`
Date: Thu, 10 Jul 2025 17:01:06 +0200 [thread overview]
Message-ID: <DB8GRISJR5MX.3DELQEG2V8SQK@kernel.org> (raw)
In-Reply-To: <20250710123836.146825-1-ritvikfoss@gmail.com>
On Thu Jul 10, 2025 at 2:38 PM CEST, Ritvik Gupta wrote:
> Replace unsafe `MaybeUninit::uninit().assume_init()`
> initialization with `Opaque::uninit()`, which is an
> abstraction for handling opaque FFI types.
>
> Suggested-by: Benno Lossin <benno.lossin@proton.me>
@Viresh when you take this, please use <lossin@kernel.org> :)
(it also is in .mailmap, so maybe it will automatically be fixed?)
> Link: https://github.com/Rust-for-Linux/linux/issues/1178
> Signed-off-by: Ritvik Gupta <ritvikfoss@gmail.com>
Thanks!
Reviewed-by: Benno Lossin <lossin@kernel.org>
---
Cheers,
Benno
> ---
> rust/kernel/cpumask.rs | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
prev parent reply other threads:[~2025-07-10 15:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-10 12:38 [PATCH] rust: cpumask: Replace `MaybeUninit` with `Opaque::uninit` Ritvik Gupta
2025-07-10 12:41 ` Alice Ryhl
2025-07-10 15:01 ` Benno Lossin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DB8GRISJR5MX.3DELQEG2V8SQK@kernel.org \
--to=lossin@kernel.org \
--cc=a.hindborg@kernel.org \
--cc=alex.gaynor@gmail.com \
--cc=aliceryhl@google.com \
--cc=benno.lossin@proton.me \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=dakr@kernel.org \
--cc=gary@garyguo.net \
--cc=ojeda@kernel.org \
--cc=ritvikfoss@gmail.com \
--cc=rust-for-linux@vger.kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=tmgross@umich.edu \
--cc=viresh.kumar@linaro.org \
--cc=yury.norov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.