rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] rust: list: remove HasListLinks::OFFSET
@ 2025-04-09 14:51 Tamir Duberstein
  2025-04-09 14:51 ` [PATCH v2 1/4] rust: list: simplify macro capture Tamir Duberstein
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Tamir Duberstein @ 2025-04-09 14:51 UTC (permalink / raw)
  To: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, Danilo Krummrich, Bjorn Helgaas, Greg Kroah-Hartman,
	Rafael J. Wysocki
  Cc: rust-for-linux, linux-kernel, linux-pci, Tamir Duberstein

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@gmail.com>
---
Changes in v2:
- Change type parameter delimiter to `{}` for consistency. (Boqun Feng)
- Rebase on v6.15-rc1.
- Extract first commit to its own series as it is shared with other
  series.
- Link to v1: https://lore.kernel.org/r/20250324-list-no-offset-v1-0-afd2b7fc442a@gmail.com

---
Tamir Duberstein (4):
      rust: list: simplify macro capture
      rust: list: use consistent type parameter style
      rust: list: use consistent self parameter name
      rust: list: remove OFFSET constants

 rust/kernel/list.rs                    |  18 +++--
 rust/kernel/list/impl_list_item_mod.rs | 128 +++++++++++++++------------------
 2 files changed, 67 insertions(+), 79 deletions(-)
---
base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8
change-id: 20250324-list-no-offset-96ef65cb2a95
prerequisite-change-id: 20250409-container-of-mutness-b153dab4388d:v1
prerequisite-patch-id: 53d5889db599267f87642bb0ae3063c29bc24863

Best regards,
-- 
Tamir Duberstein <tamird@gmail.com>


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-04-16 15:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09 14:51 [PATCH v2 0/4] rust: list: remove HasListLinks::OFFSET Tamir Duberstein
2025-04-09 14:51 ` [PATCH v2 1/4] rust: list: simplify macro capture Tamir Duberstein
2025-04-16 15:17   ` Christian Schrefl
2025-04-09 14:51 ` [PATCH v2 2/4] rust: list: use consistent type parameter style Tamir Duberstein
2025-04-16 15:18   ` Christian Schrefl
2025-04-09 14:51 ` [PATCH v2 3/4] rust: list: use consistent self parameter name Tamir Duberstein
2025-04-16 15:20   ` Christian Schrefl
2025-04-09 14:51 ` [PATCH v2 4/4] rust: list: remove OFFSET constants Tamir Duberstein
2025-04-09 14:53 ` [PATCH v2 0/4] rust: list: remove HasListLinks::OFFSET Tamir Duberstein
2025-04-14 17:53   ` Tamir Duberstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).