From b3eb34e0ea0ec7c550df5fd6b25efcf9e35c53cd Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Tue, 25 Mar 2003 11:36:43 +0000 Subject: linux merge for drm --- linux/drmP.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linux/drmP.h') diff --git a/linux/drmP.h b/linux/drmP.h index c20166e2..5c1474df 100644 --- a/linux/drmP.h +++ b/linux/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) { -- cgit v1.2.3