Skip to content

Commit 275ad5e

Browse files
committed
rust: list: remove nonexistent generic parameter in link
`ListLinks` does not take a `T` generic parameter, unlike `ListLinksSelfPtr`. Thus fix it, which makes it also consistent with the rest of the links in the file. Fixes: 40c5329 ("rust: list: add macro for implementing ListItem") Reviewed-by: Tamir Duberstein <tamird@gmail.com> Link: https://lore.kernel.org/r/20250719232500.822313-1-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent cc84ef3 commit 275ad5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rust/kernel/list/impl_list_item_mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
/// [`ListLinks<ID>`]: crate::list::ListLinks
1818
/// [`ListItem`]: crate::list::ListItem
1919
pub unsafe trait HasListLinks<const ID: u64 = 0> {
20-
/// Returns a pointer to the [`ListLinks<T, ID>`] field.
20+
/// Returns a pointer to the [`ListLinks<ID>`] field.
2121
///
2222
/// # Safety
2323
///
2424
/// The provided pointer must point at a valid struct of type `Self`.
2525
///
26-
/// [`ListLinks<T, ID>`]: crate::list::ListLinks
26+
/// [`ListLinks<ID>`]: crate::list::ListLinks
2727
unsafe fn raw_get_list_links(ptr: *mut Self) -> *mut crate::list::ListLinks<ID>;
2828
}
2929

0 commit comments

Comments
 (0)