svn commit: r210788 - projects/ofed/head/sys/ofed/include/linux
Jeff Roberson
jeff at FreeBSD.org
Tue Aug 3 08:34:42 UTC 2010
Author: jeff
Date: Tue Aug 3 08:34:41 2010
New Revision: 210788
URL: http://svn.freebsd.org/changeset/base/210788
Log:
- Correct the list_move_tail macro
Submitted by: Bob Glossman <bglossman at isilon.com>
Sponsored by: Isilon Systems, iX Systems, and Panasas.
Modified:
projects/ofed/head/sys/ofed/include/linux/list.h
Modified: projects/ofed/head/sys/ofed/include/linux/list.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/linux/list.h Tue Aug 3 03:19:57 2010 (r210787)
+++ projects/ofed/head/sys/ofed/include/linux/list.h Tue Aug 3 08:34:41 2010 (r210788)
@@ -101,13 +101,6 @@ list_del_init(struct list_head *entry)
INIT_LIST_HEAD(entry);
}
-static inline void
-list_move_tail(struct list_head *entry, struct list_head *head)
-{
-
- list_del(entry);
-}
-
#define list_entry(ptr, type, field) container_of(ptr, type, field)
#define list_for_each(p, head) \
@@ -154,6 +147,14 @@ list_move(struct list_head *list, struct
}
static inline void
+list_move_tail(struct list_head *entry, struct list_head *head)
+{
+
+ list_del(entry);
+ list_add_tail(entry, head);
+}
+
+static inline void
_list_splice(const struct list_head *list, struct list_head *prev,
struct list_head *next)
{
More information about the svn-src-projects
mailing list