From owner-svn-src-projects@FreeBSD.ORG Tue Aug 3 08:34:42 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 344B11065679; Tue, 3 Aug 2010 08:34:42 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 23AFA8FC0C; Tue, 3 Aug 2010 08:34:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o738YgeN089558; Tue, 3 Aug 2010 08:34:42 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o738Ygfm089557; Tue, 3 Aug 2010 08:34:42 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201008030834.o738Ygfm089557@svn.freebsd.org> From: Jeff Roberson Date: Tue, 3 Aug 2010 08:34:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210788 - projects/ofed/head/sys/ofed/include/linux X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2010 08:34:42 -0000 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 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) {