diff options
| author | Tamir Duberstein <[email protected]> | 2025-07-09 19:31:15 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-07-19 21:18:18 +0000 |
| commit | 5d840b4c4935cd5100be97b6df565b4b159970a5 (patch) | |
| tree | eb33d9827e8c9f2043246af1849c2446215503d3 /scripts/rustdoc_test_gen.rs | |
| parent | rust: list: use fully qualified path (diff) | |
| download | kernel-5d840b4c4935cd5100be97b6df565b4b159970a5.tar.gz kernel-5d840b4c4935cd5100be97b6df565b4b159970a5.zip | |
rust: list: add `impl_list_item!` examples
There's a comprehensive example in `rust/kernel/list.rs` but it doesn't
exercise the `using ListLinksSelfPtr` variant nor the generic cases. Add
that here. Generalize `impl_has_list_links_self_ptr` to handle nested
fields in the same manner as `impl_has_list_links`.
Tested-by: Alice Ryhl <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Signed-off-by: Tamir Duberstein <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Fixed Rust < 1.82 build by enabling the `offset_of_nested`
feature. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_gen.rs')
0 files changed, 0 insertions, 0 deletions
