kernel/util: Require passing a list_link to list_remove_link.

If something other than a list_link is passed, an explicit cast
will now be needed.

No functional change intended.
This commit is contained in:
Augustin Cavalier
2025-01-14 17:30:36 -05:00
parent 7d232f0cf8
commit 7331a67227
4 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ extern void list_init(struct list *list);
extern void list_init_etc(struct list *list, int32 offset);
extern void list_add_link_to_head(struct list *list, void *_link);
extern void list_add_link_to_tail(struct list *list, void *_link);
extern void list_remove_link(void *_link);
extern void list_remove_link(struct list_link *_link);
extern void *list_get_next_item(struct list *list, void *item);
extern void *list_get_prev_item(struct list *list, void *item);
extern void *list_get_last_item(struct list *list);