[PATCH v4 0/6] rust: list: remove HasListLinks::OFFSET

Tamir Duberstein posted 6 patches 2 months, 4 weeks ago
rust/kernel/list.rs                    |  23 ++--
rust/kernel/list/impl_list_item_mod.rs | 233 ++++++++++++++++++++++-----------
2 files changed, 166 insertions(+), 90 deletions(-)
[PATCH v4 0/6] rust: list: remove HasListLinks::OFFSET
Posted by Tamir Duberstein 2 months, 4 weeks ago
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>
Re: [PATCH v4 0/6] rust: list: remove HasListLinks::OFFSET
Posted by Miguel Ojeda 2 months, 2 weeks ago
On Wed, Jul 9, 2025 at 9:31 PM Tamir Duberstein <tamird@gmail.com> wrote:
>
> 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>

Applied to `rust-next` -- thanks everyone!

    [ Fixed Rust < 1.82 build by enabling the `offset_of_nested`
      feature. - Miguel ]

    [ Fixed broken intra-doc links. Used the renamed
      `Opaque::cast_into`. - Miguel ]

Cheers,
Miguel