The bulk of this change occurs in the last commit, please see its commit
messages for details.
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
---
Changes in v4:
- Pick up Alice's Reviewed-by.
- Rebase on rust-next (minor merge conflicts).
- Link to v3: https://lore.kernel.org/r/20250423-list-no-offset-v3-0-9d0c2b89340e@gmail.com
Changes in v3:
- Add a patch to improve macro hygiene.
- Add a patch to include examples for all macros.
- Make it build properly!
- Link to v2: https://lore.kernel.org/r/20250409-list-no-offset-v2-0-0bab7e3c9fd8@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 (6):
rust: list: simplify macro capture
rust: list: use consistent type parameter style
rust: list: use consistent self parameter name
rust: list: use fully qualified path
rust: list: add `impl_list_item!` examples
rust: list: remove OFFSET constants
rust/kernel/list.rs | 23 ++--
rust/kernel/list/impl_list_item_mod.rs | 233 ++++++++++++++++++++++-----------
2 files changed, 166 insertions(+), 90 deletions(-)
---
base-commit: 2009a2d5696944d85c34d75e691a6f3884e787c0
change-id: 20250324-list-no-offset-96ef65cb2a95
Best regards,
--
Tamir Duberstein <tamird@gmail.com>