mbox series

[0/5] rust: list: remove HasListLinks::OFFSET

Message ID 20250324-list-no-offset-v1-0-afd2b7fc442a@gmail.com (mailing list archive)
Headers show
Series rust: list: remove HasListLinks::OFFSET | expand

Message

Tamir Duberstein March 24, 2025, 9:33 p.m. UTC
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>
---
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,