From 6cfe387e067bb6279e586aca3560600ead2c5dda Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Wed, 19 Jun 2013 10:07:17 +1000 Subject: [PATCH] list: remove __list_for_each() __list_for_each used to be the non prefetch() aware list walking primitive. When we removed the prefetch macros from the list routines, it became redundant. Given it does exactly the same thing as list_for_each now, we might as well remove it and call list_for_each directly. Signed-off-by: Dave Jones Cc: "David S. Miller" Cc: "John W. Linville" Cc: Clemens Ladisch Cc: Dave Airlie Cc: Greg Kroah-Hartman Cc: Jaroslav Kysela Cc: Jennifer Naumann Cc: Neil Horman Cc: Sebastian Hahn Cc: Stanislav Yakovlev Cc: Takashi Iwai Cc: Vlad Yasevich Cc: YAMANE Toshiaki Signed-off-by: Andrew Morton --- include/linux/list.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/include/linux/list.h b/include/linux/list.h index b83e5657365a..f4d8a2f12a33 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -380,17 +380,6 @@ static inline void list_splice_tail_init(struct list_head *list, #define list_for_each(pos, head) \ for (pos = (head)->next; pos != (head); pos = pos->next) -/** - * __list_for_each - iterate over a list - * @pos: the &struct list_head to use as a loop cursor. - * @head: the head for your list. - * - * This variant doesn't differ from list_for_each() any more. - * We don't do prefetching in either case. - */ -#define __list_for_each(pos, head) \ - for (pos = (head)->next; pos != (head); pos = pos->next) - /** * list_for_each_prev - iterate over a list backwards * @pos: the &struct list_head to use as a loop cursor. -- 2.39.5