[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANiq72=zy_EKX9gvnb3V3f9jrR2QpgAHpUFWgJWVadaumv2L+A@mail.gmail.com>
Date: Tue, 22 Jul 2025 13:54:37 +0200
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Shankari Anand <shankari.ak0208@...il.com>
Cc: linux-kernel@...r.kernel.org, rust-for-linux@...r.kernel.org,
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 <lossin@...nel.org>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakr@...nel.org>
Subject: Re: [PATCH v4] rust: move ARef and AlwaysRefCounted to sync::aref
On Tue, Jul 15, 2025 at 1:04 PM Shankari Anand
<shankari.ak0208@...il.com> wrote:
>
> Move the definitions of `ARef` and `AlwaysRefCounted` from `types.rs`
> to a new file `sync/aref.rs`.
> Define the corresponding `aref` module under `rust/kernel/sync.rs`.
> These types are better grouped in `sync`.
>
> To avoid breaking existing imports, they are re-exported from `types.rs`.
> Drop unused imports `mem::ManuallyDrop`, `ptr::NonNull` from `types.rs`,
> they are now only used in `sync/aref.rs`, where they are already imported.
>
> Suggested-by: Benno Lossin <lossin@...nel.org>
> Link: https://github.com/Rust-for-Linux/linux/issues/1173
> Signed-off-by: Shankari Anand <shankari.ak0208@...il.com>
Applied to `rust-next` -- thanks everyone!
[ Added missing `///`. Changed module title. Reworded slightly. - Miguel ]
Cheers,
Miguel
Powered by blists - more mailing lists