summaryrefslogtreecommitdiff
path: root/linux-core/drmP.h
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2003-03-25 11:36:43 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2003-03-25 11:36:43 +0000
commitb3eb34e0ea0ec7c550df5fd6b25efcf9e35c53cd (patch)
tree3ba6b39dc03658d840555d19c1ff56e2da8ce72c /linux-core/drmP.h
parentc14006ba9f0522875327998215150067d8ca6ea7 (diff)
linux merge for drm
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r--linux-core/drmP.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index c20166e2..5c1474df 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -166,6 +166,12 @@
#define pte_unmap(pte)
#endif
+#ifndef list_for_each_safe
+#define list_for_each_safe(pos, n, head) \
+ for (pos = (head)->next, n = pos->next; pos != (head); \
+ pos = n, n = pos->next)
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,19)
static inline struct page * vmalloc_to_page(void * vmalloc_addr)
{