xf86-video-intel: src/intel_list.h
Chris Wilson
ickle at kemper.freedesktop.org
Sun Feb 12 16:50:31 PST 2012
src/intel_list.h | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit c0376b7f7b083ab2e87edc36e56fd8eb99c3cd05
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Mon Feb 13 00:48:15 2012 +0000
Add a missing macro for old xorg/list.h
list_last_entry() needs to be defined if we are including the xorg
list.h as opposed to our standalone variant.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/intel_list.h b/src/intel_list.h
index 2595a29..9187766 100644
--- a/src/intel_list.h
+++ b/src/intel_list.h
@@ -401,6 +401,9 @@ static inline void list_move_tail(struct list *list, struct list *head)
#define container_of(ptr, type, member) \
((type *)((char *)(ptr) - (char *) &((type *)0)->member))
+#define list_last_entry(ptr, type, member) \
+ list_entry((ptr)->prev, type, member)
+
#endif
#endif /* _INTEL_LIST_H_ */
More information about the xorg-commit
mailing list