]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/rbtree.h
Merge branches 'x86-reboot-for-linus' and 'x86-setup-for-linus' of git://git.kernel...
[karo-tx-linux.git] / include / linux / rbtree.h
index 7066acb2c53072c4d6df35b7bc909723d1d646a9..033b507b33b17075e5ab5cf287b264d3b9b22f35 100644 (file)
@@ -136,6 +136,14 @@ static inline void rb_set_color(struct rb_node *rb, int color)
 #define RB_EMPTY_NODE(node)    (rb_parent(node) == node)
 #define RB_CLEAR_NODE(node)    (rb_set_parent(node, node))
 
+static inline void rb_init_node(struct rb_node *rb)
+{
+       rb->rb_parent_color = 0;
+       rb->rb_right = NULL;
+       rb->rb_left = NULL;
+       RB_CLEAR_NODE(rb);
+}
+
 extern void rb_insert_color(struct rb_node *, struct rb_root *);
 extern void rb_erase(struct rb_node *, struct rb_root *);