]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Change list_emtpy() to take a const pointer
authorRusty Russell <trivial@rustcorp.com.au>
Sun, 5 Oct 2003 04:32:59 +0000 (21:32 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 5 Oct 2003 04:32:59 +0000 (21:32 -0700)
From:  "Perez-Gonzalez, Inaky" <inaky.perez-gonzalez@intel.com>

include/linux/list.h

index beed16b82895946e2617b750e8940f72e6ecbece..b7d383e6a3121b68b7d7faeb8b3065eeda93c799 100644 (file)
@@ -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;
 }