[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <D9JVD8VXL45C.2NHMV68432VV0@kernel.org>
Date: Wed, 30 Apr 2025 11:35:07 +0200
From: "Benno Lossin" <lossin@...nel.org>
To: "Christian Schrefl" <chrisi.schrefl@...il.com>, "Sky" <sky@...9.dev>,
"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>, "Benno Lossin"
<benno.lossin@...ton.me>, "Andreas Hindborg" <a.hindborg@...nel.org>,
"Alice Ryhl" <aliceryhl@...gle.com>, "Trevor Gross" <tmgross@...ch.edu>,
"Danilo Krummrich" <dakr@...nel.org>, Gerald Wisböck
<gerald.wisboeck@...ther.ink>
Cc: <linux-kernel@...r.kernel.org>, <rust-for-linux@...r.kernel.org>
Subject: Re: [PATCH v2 3/3] rust: use `UnsafePinned` in the implementation
of `Opaque`
On Wed Apr 30, 2025 at 10:36 AM CEST, Christian Schrefl wrote:
> This change makes the semantics of the `Opaque` implementation
> clearer and prepares for the switch to the upstream rust UnsafePinned`
> type in the future.
s/This change makes/Make/
s/prepares/prepare/
s/UnsafePinned`/`UnsafePinned`/
> `Opaque` still uses `UnsafeCell` even though the kernel implementation
> of `UnsafePinned` already includes it, since the current upstream
> version does not.
This would be very important to add as a comment on the `value` field.
> Reviewed-by: Gerald Wisböck <gerald.wisboeck@...ther.ink>
> Signed-off-by: Christian Schrefl <chrisi.schrefl@...il.com>
The change itself looks good. With the comment added:
Reviewed-by: Benno Lossin <lossin@...nel.org>
---
Cheers,
Benno
> ---
> rust/kernel/types.rs | 29 ++++++++++++-----------------
> 1 file changed, 12 insertions(+), 17 deletions(-)
Powered by blists - more mailing lists