summaryrefslogtreecommitdiff
path: root/include/linux/rbtree_latch.h
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2018-05-11 16:02:14 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2018-05-11 17:28:45 -0700
commit2075b16e32c26e4031b9fd3cbe26c54676a8fcb5 (patch)
tree56ee8d6ca184e3df1e89ebdc9408e0db7d4d6855 /include/linux/rbtree_latch.h
parent78eb0c6356cda285c6ee6e29bea0c0188368103e (diff)
downloadlwn-2075b16e32c26e4031b9fd3cbe26c54676a8fcb5.tar.gz
lwn-2075b16e32c26e4031b9fd3cbe26c54676a8fcb5.zip
rbtree: include rcu.h
Since commit c1adf20052d8 ("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/20180504103159.19938-1-bigeasy@linutronix.de Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/rbtree_latch.h')
-rw-r--r--include/linux/rbtree_latch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/rbtree_latch.h b/include/linux/rbtree_latch.h
index ece43e882b56..7d012faa509a 100644
--- a/include/linux/rbtree_latch.h
+++ b/include/linux/rbtree_latch.h
@@ -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];