Skip to contentSkip to conversation

list-remove-__list_for_each.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 17, 2013

lore
Share & tools
lore
#0 lore raw

Subject: [merged] list-remove-__list_for_each.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 17 Jul 2013 12:42:19 -0700

The patch titled
Subject: list: remove __list_for_each()
has been removed from the -mm tree. Its filename was
list-remove-__list_for_each.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Dave Jones <[email protected]>
Subject: 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.

Cc "David S. Miller" <[email protected]>
Cc "John W. Linville" <[email protected]>
Cc Clemens Ladisch <[email protected]>
Cc Dave Airlie <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Jaroslav Kysela <[email protected]>
Cc Jennifer Naumann <[email protected]>
Cc Neil Horman <[email protected]>
Cc Sebastian Hahn <[email protected]>
Cc Stanislav Yakovlev <[email protected]>
Cc Takashi Iwai <[email protected]>
Cc Vlad Yasevich <[email protected]>
Cc YAMANE Toshiaki <[email protected]>

---

 include/linux/list.h |   11 -----------
 1 file changed, 11 deletions(-)
include/linux/list.h renamed from include/linux/list.h~list-remove-__list_for_each +0 -9
diff -puN include/linux/list.h~list-remove-__list_for_each include/linux/list.h
@@ -381,17 +381,6 @@ static inline void list_splice_tail_init
 	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)