Signed-off-by: Felix Fietkau <nbd@openwrt.org>
static void
avl_insert_before(struct avl_tree *tree, struct avl_node *pos_node, struct avl_node *node)
{
- list_add_before(&pos_node->list, &node->list);
+ list_add_tail(&node->list, &pos_node->list);
tree->count++;
}
#ifndef __LIST_COMPAT_H
#define __LIST_COMPAT_H
-#define list_add_before(_before, _list) list_add_tail(_list, _before)
#define list_remove(_list) list_del(_list)
#define list_is_empty(_list) list_empty(_list)
#define list_next_element(_element, _member) list_entry((_element)->_member.next, typeof(*(_element)), _member)