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@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-02-13 00:48:15 +00:00
parent 87bed52180
commit c0376b7f7b
1 changed files with 3 additions and 0 deletions

View File

@ -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_ */