void rb_link_node(struct rb_node *new_node,
struct rb_node *parent,
struct rb_node **link);
...which is all rb_node pointers (or pointers to pointers). But it declares this function:
void my_rb_insert(struct rb_root *root, struct my_stuff *new)
...which has "new" as a struct my_stuff pointer. That function then calls:
rb_link_node(new, parent, link);
...shouldn't "new" in latter two calls be a pointer to the embedded rb_node?
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds