[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250324-list-no-offset-v1-0-afd2b7fc442a@gmail.com>
Date: Mon, 24 Mar 2025 17:33:42 -0400
From: Tamir Duberstein <tamird@...il.com>
To: 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>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>
Cc: rust-for-linux@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-pci@...r.kernel.org, Tamir Duberstein <tamird@...il.com>
Subject: [PATCH 0/5] rust: list: remove HasListLinks::OFFSET
The bulk of this change occurs in the last commit, please its commit
messages for details. The first commit exists in 2 other series but was
picked into this series to allow using `container_of!` without the need
to cast from `*const Self` to `*mut Self`.
Signed-off-by: Tamir Duberstein <tamird@...il.com>
---
Tamir Duberstein (5):
rust: retain pointer mut-ness in `container_of!`
rust: list: simplify macro capture
rust: list: use consistent type parameter names
rust: list: use consistent self parameter name
rust: list: remove OFFSET constants
rust/kernel/lib.rs | 5 +-
rust/kernel/list.rs | 18 +++--
rust/kernel/list/impl_list_item_mod.rs | 128 +++++++++++++++------------------
rust/kernel/pci.rs | 2 +-
rust/kernel/platform.rs | 2 +-
rust/kernel/rbtree.rs | 23 +++---
6 files changed, 81 insertions(+), 97 deletions(-)
---
base-commit: 28bb48c4cb34f65a9aa602142e76e1426da31293
change-id: 20250324-list-no-offset-96ef65cb2a95
Best regards,
--
Tamir Duberstein <tamird@...il.com>
Powered by blists - more mailing lists