diff options
Diffstat (limited to 'include/linux/list.h')
| -rw-r--r-- | include/linux/list.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/list.h b/include/linux/list.h index 969f6e92d089..d62a35b4f9ba 100644 --- a/include/linux/list.h +++ b/include/linux/list.h | |||
| @@ -345,6 +345,9 @@ static inline void list_splice_tail_init(struct list_head *list, | |||
| 345 | #define list_first_entry(ptr, type, member) \ | 345 | #define list_first_entry(ptr, type, member) \ |
| 346 | list_entry((ptr)->next, type, member) | 346 | list_entry((ptr)->next, type, member) |
| 347 | 347 | ||
| 348 | #define list_last_entry(ptr, type, member) \ | ||
| 349 | list_entry((ptr)->prev, type, member) | ||
| 350 | |||
| 348 | /** | 351 | /** |
| 349 | * list_for_each - iterate over a list | 352 | * list_for_each - iterate over a list |
| 350 | * @pos: the &struct list_head to use as a loop cursor. | 353 | * @pos: the &struct list_head to use as a loop cursor. |
