]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: list: remove nonexistent generic parameter in link
authorMiguel Ojeda <ojeda@kernel.org>
Sat, 19 Jul 2025 23:25:00 +0000 (01:25 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 20 Jul 2025 17:29:19 +0000 (19:29 +0200)
`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: 40c53294596b ("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>
rust/kernel/list/impl_list_item_mod.rs

index f4c91832a875e44453429e93567703e6a5b16752..202bc6f97c1326e4393fbd8072c15fd779fdf2f0 100644 (file)
 /// [`ListLinks<ID>`]: crate::list::ListLinks
 /// [`ListItem`]: crate::list::ListItem
 pub unsafe trait HasListLinks<const ID: u64 = 0> {
-    /// Returns a pointer to the [`ListLinks<T, ID>`] field.
+    /// Returns a pointer to the [`ListLinks<ID>`] field.
     ///
     /// # Safety
     ///
     /// The provided pointer must point at a valid struct of type `Self`.
     ///
-    /// [`ListLinks<T, ID>`]: crate::list::ListLinks
+    /// [`ListLinks<ID>`]: crate::list::ListLinks
     unsafe fn raw_get_list_links(ptr: *mut Self) -> *mut crate::list::ListLinks<ID>;
 }