diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-13 00:48:15 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-13 00:48:15 +0000 |
commit | c0376b7f7b083ab2e87edc36e56fd8eb99c3cd05 (patch) | |
tree | 72456980518443e92559e18dc0b11deaa1ce703d /src/intel_list.h | |
parent | 87bed52180cd2abd80ef6b58384f9fd9c9968f7b (diff) |
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>
Diffstat (limited to 'src/intel_list.h')
-rw-r--r-- | src/intel_list.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel_list.h b/src/intel_list.h index 2595a298..91877665 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_ */ |