diff options
author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2007-02-22 17:04:20 +0100 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2007-02-22 17:04:20 +0100 |
commit | 2b7a9afa0977d4a8b21db3d436cec66e5a45764d (patch) | |
tree | b7df3b46a57d3e1ce66211040e318193c6fddc38 /linux-core/drm_compat.h | |
parent | a253de2fcfa11abadd4697a9d89137adf3f35f78 (diff) |
Some fencing cleanup.
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r-- | linux-core/drm_compat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h index 9692492d..7741714a 100644 --- a/linux-core/drm_compat.h +++ b/linux-core/drm_compat.h @@ -152,6 +152,13 @@ static __inline__ void *kcalloc(size_t nmemb, size_t size, int flags) (tmp);}) #endif +#ifndef list_for_each_entry_safe_reverse +#define list_for_each_entry_safe_reverse(pos, n, head, member) \ + for (pos = list_entry((head)->prev, typeof(*pos), member), \ + n = list_entry(pos->member.prev, typeof(*pos), member); \ + &pos->member != (head); \ + pos = n, n = list_entry(n->member.prev, typeof(*n), member)) +#endif #include <linux/mm.h> #include <asm/page.h> |