Skip to content

Commit 2075b16

Browse files
Sebastian Andrzej Siewiortorvalds
authored andcommitted
rbtree: include rcu.h
Since commit c1adf20 ("Introduce rb_replace_node_rcu()") rbtree_augmented.h uses RCU related data structures but does not include the header file. It works as long as it gets somehow included before that and fails otherwise. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: David Howells <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 78eb0c6 commit 2075b16

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

include/linux/rbtree_augmented.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#include <linux/compiler.h>
2828
#include <linux/rbtree.h>
29+
#include <linux/rcupdate.h>
2930

3031
/*
3132
* Please note - only struct rb_augment_callbacks and the prototypes for

include/linux/rbtree_latch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
#include <linux/rbtree.h>
3737
#include <linux/seqlock.h>
38+
#include <linux/rcupdate.h>
3839

3940
struct latch_tree_node {
4041
struct rb_node node[2];

0 commit comments

Comments
 (0)