Date: Tue, 3 Aug 2010 08:34:41 +0000 (UTC) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r210788 - projects/ofed/head/sys/ofed/include/linux Message-ID: <201008030834.o738Ygfm089557@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008030834.o738Ygfm089557>