aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/list.h')
-rw-r--r--include/linux/list.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/list.h b/include/linux/list.h
index b4a939b6b625..7627508f1b74 100644
--- a/include/linux/list.h
+++ b/include/linux/list.h
@@ -328,7 +328,7 @@ static inline int list_is_singular(const struct list_head *head)
328 return !list_empty(head) && (head->next == head->prev); 328 return !list_empty(head) && (head->next == head->prev);
329} 329}
330 330
331static inline void __list_splice(struct list_head *list, 331static inline void __list_splice(const struct list_head *list,
332 struct list_head *head) 332 struct list_head *head)
333{ 333{
334 struct list_head *first = list->next; 334 struct list_head *first = list->next;
@@ -347,7 +347,8 @@ static inline void __list_splice(struct list_head *list,
347 * @list: the new list to add. 347 * @list: the new list to add.
348 * @head: the place to add it in the first list. 348 * @head: the place to add it in the first list.
349 */ 349 */
350static inline void list_splice(struct list_head *list, struct list_head *head) 350static inline void list_splice(const struct list_head *list,
351 struct list_head *head)
351{ 352{
352 if (!list_empty(list)) 353 if (!list_empty(list))
353 __list_splice(list, head); 354 __list_splice(list, head);