[PATCH 0/5] rust: list: remove HasListLinks::OFFSET
From: Tamir Duberstein
Date: Mon Mar 24 2025 - 17:35:44 EST
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@xxxxxxxxx>
---
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@xxxxxxxxx>