summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <trivial@rustcorp.com.au>2003-10-04 21:32:59 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-10-04 21:32:59 -0700
commit8e6044949e48ee507aef947e8b9ac89c7436dca8 (patch)
treefa55e9f3a0823086809c8b39a1597673e718fbce
parent4322576fbf39027ac17626302a2eb49800fa5035 (diff)
[PATCH] Change list_emtpy() to take a const pointer
From: "Perez-Gonzalez, Inaky" <inaky.perez-gonzalez@intel.com>
-rw-r--r--include/linux/list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/list.h b/include/linux/list.h
index beed16b82895..b7d383e6a312 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;
}