From: Jiri Pirko Date: Fri, 15 Apr 2016 07:51:45 +0000 (+0200) Subject: list: add list_add_tail helper X-Git-Tag: v4.6.0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebaf76b55ea509bcfb8845e4c40a9ecd3e8377f5;p=thirdparty%2Fiproute2.git list: add list_add_tail helper Signed-off-by: Jiri Pirko --- diff --git a/include/list.h b/include/list.h index b549c3ec8..5b529dc6e 100644 --- a/include/list.h +++ b/include/list.h @@ -33,6 +33,11 @@ static inline void list_add(struct list_head *new, struct list_head *head) __list_add(new, head, head->next); } +static inline void list_add_tail(struct list_head *new, struct list_head *head) +{ + __list_add(new, head->prev, head); +} + static inline void __list_del(struct list_head *prev, struct list_head *next) { next->prev = prev;