rbtree: include rcu.h because we use it
PATCH 1/1 rbtree: include rcu.h because we use it
Since commit c1adf20052d8 ("Introduce rb_replace_node_rcu()") rbtree_augmented.h uses RCU related data structures but does not include them. It works as long as gets somehow included before that and fails otherwise.
--- include/linux/rbtree_augmented.h | 1 + include/linux/rbtree_latch.h | 1 + 2 files changed, 2 insertions(+)
include/linux/rbtree_augmented.h +1 -0
@@ -26,6 +26,7 @@#include <linux/compiler.h> #include <linux/rbtree.h> +#include <linux/rcupdate.h> /* * Please note - only struct rb_augment_callbacks and the prototypes for
include/linux/rbtree_latch.h +1 -0
@@ -35,6 +35,7 @@#include <linux/rbtree.h> #include <linux/seqlock.h> +#include <linux/rcupdate.h> struct latch_tree_node {struct rb_node node[2 ];
Quoted 4 lines · On Fri, 4 May 2018 12:31:59 +0200 Sebastian Andrzej Siewior…
Since commit
c1adf20052d8("Introducerb_replace_node_rcu()")rbtree_augmented.huses RCU related data structures but does not include them. It works as long as gets somehow included before that and fails otherwise.
c1adf20052d8 was two years ago. Are there any actual real build errors arising from this? If so, backporting the patch might be needed?
Quoted 9 lines · Andrew Morton
Quoted 4 lines · On Fri, 4 May 2018 12:31:59 +0200 Sebastian Andrzej Siewior…
Since commit
c1adf20052d8("Introducerb_replace_node_rcu()")rbtree_augmented.huses RCU related data structures but does not include them. It works as long as gets somehow included before that and fails otherwise.
c1adf20052d8was two years ago. Are there any actual real build errors arising from this? If so, backporting the patch might be needed?
I've seen them only in -RT. No backporting needed.
Sebastian