From 6ae5e13db4efdc5197f58d75a7322baf2849dde4 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 9 Apr 2003 00:42:06 +0000 Subject: Fix last-minute breakage of list_add_tail. Pointy hat to: anholt --- bsd-core/drm_linux_list.h | 4 ++-- bsd/drm_linux_list.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bsd-core/drm_linux_list.h b/bsd-core/drm_linux_list.h index 6883030d..ef87ee66 100644 --- a/bsd-core/drm_linux_list.h +++ b/bsd-core/drm_linux_list.h @@ -47,10 +47,10 @@ list_empty(struct list_head *head) { static __inline__ void list_add_tail(struct list_head *entry, struct list_head *head) { - (head)->prev = entry; - (entry)->next = head; (entry)->prev = (head)->prev; + (entry)->next = head; (head)->prev->next = entry; + (head)->prev = entry; } static __inline__ void diff --git a/bsd/drm_linux_list.h b/bsd/drm_linux_list.h index 6883030d..ef87ee66 100644 --- a/bsd/drm_linux_list.h +++ b/bsd/drm_linux_list.h @@ -47,10 +47,10 @@ list_empty(struct list_head *head) { static __inline__ void list_add_tail(struct list_head *entry, struct list_head *head) { - (head)->prev = entry; - (entry)->next = head; (entry)->prev = (head)->prev; + (entry)->next = head; (head)->prev->next = entry; + (head)->prev = entry; } static __inline__ void -- cgit v1.2.3