[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aG_qnYSu4DU5xnP1@Mac.home>
Date: Thu, 10 Jul 2025 09:30:21 -0700
From: Boqun Feng <boqun.feng@...il.com>
To: Alice Ryhl <aliceryhl@...gle.com>
Cc: Tejun Heo <tj@...nel.org>, Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Lai Jiangshan <jiangshanlai@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Andreas Hindborg <a.hindborg@...nel.org>,
Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakr@...nel.org>,
Daniel Almeida <daniel.almeida@...labora.com>,
Tamir Duberstein <tamird@...il.com>, rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org, Benno Lossin <lossin@...nel.org>
Subject: Re: [PATCH v2] workqueue: rust: add delayed work items
On Thu, Jul 10, 2025 at 01:10:59PM +0000, Alice Ryhl wrote:
[...]
> >
> >
> > unsafe { Opaque::cast_from(&raw const (*ptr).dwork) };
> >
> > > + // SAFETY: The caller promises that the pointer is aligned and not dangling.
> > > + let wrk: *mut bindings::work_struct = unsafe { core::ptr::addr_of_mut!((*dw).work) };
> >
> > Ditto.
>
> The rest of the file still uses addr_of!. I think we should stay
> consistent. We can update the entire file in one go.
>
Sounds good. Thanks!
Regards,
Boqun
> Alice
Powered by blists - more mailing lists