svn commit: r189913 - head/sys/dev/drm
Robert Noland
rnoland at FreeBSD.org
Mon Mar 16 20:49:25 PDT 2009
Author: rnoland
Date: Tue Mar 17 03:49:24 2009
New Revision: 189913
URL: http://svn.freebsd.org/changeset/base/189913
Log:
Add list_for_each_prev to our linux compatibility.
We need this for nouveau
MFC after: 3 days
Modified:
head/sys/dev/drm/drm_linux_list.h
Modified: head/sys/dev/drm/drm_linux_list.h
==============================================================================
--- head/sys/dev/drm/drm_linux_list.h Tue Mar 17 03:46:37 2009 (r189912)
+++ head/sys/dev/drm/drm_linux_list.h Tue Mar 17 03:49:24 2009 (r189913)
@@ -67,6 +67,10 @@ list_del(struct list_head *entry) {
#define list_for_each(entry, head) \
for (entry = (head)->next; entry != head; entry = (entry)->next)
+#define list_for_each_prev(entry, head) \
+ for (entry = (head)->prev; entry != (head); \
+ entry = entry->prev)
+
#define list_for_each_safe(entry, temp, head) \
for (entry = (head)->next, temp = (entry)->next; \
entry != head; \
More information about the svn-src-head
mailing list