mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + list-remove-__list_for_each.patch added to -mm tree
@ 2013-06-18 20:37 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2013-06-18 20:37 UTC (permalink / raw)
  To: mm-commits, yamanetoshi, vyasevich, tiwai, stas.yakovlev,
	snsehahn, perex, nhorman, linville, gregkh, davem, clemens,
	airlied, Jennifer.Naumann, davej

Subject: + list-remove-__list_for_each.patch added to -mm tree
To: davej@redhat.com,Jennifer.Naumann@informatik.stud.uni-erlangen.de,airlied@linux.ie,clemens@ladisch.de,davem@davemloft.net,gregkh@linuxfoundation.org,linville@tuxdriver.com,nhorman@tuxdriver.com,perex@perex.cz,snsehahn@cip.cs.fau.de,stas.yakovlev@gmail.com,tiwai@suse.de,vyasevich@gmail.com,yamanetoshi@gmail.com
From: akpm@linux-foundation.org
Date: Tue, 18 Jun 2013 13:37:18 -0700


The patch titled
     Subject: list: remove __list_for_each()
has been added to the -mm tree.  Its filename is
     list-remove-__list_for_each.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Dave Jones <davej@redhat.com>
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.

Signed-off-by: Dave Jones <davej@redhat.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: "John W. Linville" <linville@tuxdriver.com>
Cc: Clemens Ladisch <clemens@ladisch.de>
Cc: Dave Airlie <airlied@linux.ie>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Jennifer Naumann <Jennifer.Naumann@informatik.stud.uni-erlangen.de>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Sebastian Hahn <snsehahn@cip.cs.fau.de>
Cc: Stanislav Yakovlev <stas.yakovlev@gmail.com>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: YAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/linux/list.h |   11 -----------
 1 file changed, 11 deletions(-)

diff -puN include/linux/list.h~list-remove-__list_for_each include/linux/list.h
--- a/include/linux/list.h~list-remove-__list_for_each
+++ a/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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-18 20:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-18 20:37 + list-remove-__list_for_each.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).