Commit 540f41ed authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Ingo Molnar
Browse files

llist: Add back llist_add_batch() and llist_del_first() prototypes

Commit 1230db8e

 ("llist: Make some llist functions inline")
has deleted the definitions, causing problems for (not upstream yet)
code that tries to make use of them.
Signed-off-by: default avatarStephen Rothwell <>
Acked-by: default avatarPeter Zijlstra <>
Cc: Huang Ying <>
Cc: David Miller <>

Signed-off-by: default avatarIngo Molnar <>
parent 510f5acc
...@@ -178,4 +178,10 @@ static inline struct llist_node *llist_del_all(struct llist_head *head) ...@@ -178,4 +178,10 @@ static inline struct llist_node *llist_del_all(struct llist_head *head)
{ {
return xchg(&head->first, NULL); return xchg(&head->first, NULL);
} }
extern bool llist_add_batch(struct llist_node *new_first,
struct llist_node *new_last,
struct llist_head *head);
extern struct llist_node *llist_del_first(struct llist_head *head);
#endif /* LLIST_H */ #endif /* LLIST_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment