From: "Robert P. J. Day" Since neither the list_splice() nor __list_splice() routines modify their first argument, might as well declare them "const". Signed-off-by: Robert P. J. Day Signed-off-by: Andrew Morton --- include/linux/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN include/linux/list.h~lists-add-const-qualifier-to-first-arg-of-list_splice-operations include/linux/list.h --- a/include/linux/list.h~lists-add-const-qualifier-to-first-arg-of-list_splice-operations +++ a/include/linux/list.h @@ -319,7 +319,7 @@ static inline int list_empty_careful(con return (next == head) && (next == head->prev); } -static inline void __list_splice(struct list_head *list, +static inline void __list_splice(const struct list_head *list, struct list_head *head) { struct list_head *first = list->next; @@ -338,7 +338,7 @@ static inline void __list_splice(struct * @list: the new list to add. * @head: the place to add it in the first list. */ -static inline void list_splice(struct list_head *list, struct list_head *head) +static inline void list_splice(const struct list_head *list, struct list_head *head) { if (!list_empty(list)) __list_splice(list, head); _