From 8e6044949e48ee507aef947e8b9ac89c7436dca8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 4 Oct 2003 21:32:59 -0700 Subject: [PATCH] [PATCH] Change list_emtpy() to take a const pointer From: "Perez-Gonzalez, Inaky" --- include/linux/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/list.h b/include/linux/list.h index beed16b828959..b7d383e6a3121 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -203,7 +203,7 @@ static inline void list_move_tail(struct list_head *list, * list_empty - tests whether a list is empty * @head: the list to test. */ -static inline int list_empty(struct list_head *head) +static inline int list_empty(const struct list_head *head) { return head->next == head; } -- 2.53.0