diff options
author | rnoland <rnoland@FreeBSD.org> | 2009-03-17 03:49:24 +0000 |
---|---|---|
committer | rnoland <rnoland@FreeBSD.org> | 2009-03-17 03:49:24 +0000 |
commit | 9993b42fe9ce8e598f6d785444ac1d15b4276d5d (patch) | |
tree | 244347428621a1a0aa5608a84c266d606aee5697 /sys/dev/drm | |
parent | 209dd0d7529870752e9e645a6d404ee9888db58b (diff) | |
download | FreeBSD-src-9993b42fe9ce8e598f6d785444ac1d15b4276d5d.zip FreeBSD-src-9993b42fe9ce8e598f6d785444ac1d15b4276d5d.tar.gz |
Add list_for_each_prev to our linux compatibility.
We need this for nouveau
MFC after: 3 days
Diffstat (limited to 'sys/dev/drm')
-rw-r--r-- | sys/dev/drm/drm_linux_list.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/drm/drm_linux_list.h b/sys/dev/drm/drm_linux_list.h index d2142a4..809d8ed 100644 --- a/sys/dev/drm/drm_linux_list.h +++ b/sys/dev/drm/drm_linux_list.h @@ -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; \ |