diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2003-03-25 11:36:43 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2003-03-25 11:36:43 +0000 |
commit | b3eb34e0ea0ec7c550df5fd6b25efcf9e35c53cd (patch) | |
tree | 3ba6b39dc03658d840555d19c1ff56e2da8ce72c /linux/drmP.h | |
parent | c14006ba9f0522875327998215150067d8ca6ea7 (diff) |
linux merge for drm
Diffstat (limited to 'linux/drmP.h')
-rw-r--r-- | linux/drmP.h | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |