[patch 13/13] rbtree: include rcu.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
Subject: rbtree: include rcu.h

Since 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@xxxxxxxxxxxxx
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: David Howells <dhowells@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/rbtree_augmented.h |    1 +
 include/linux/rbtree_latch.h     |    1 +
 2 files changed, 2 insertions(+)

diff -puN include/linux/rbtree_augmented.h~rbtree-include-rcuh-because-we-use-it include/linux/rbtree_augmented.h
--- a/include/linux/rbtree_augmented.h~rbtree-include-rcuh-because-we-use-it
+++ a/include/linux/rbtree_augmented.h
@@ -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
diff -puN include/linux/rbtree_latch.h~rbtree-include-rcuh-because-we-use-it include/linux/rbtree_latch.h
--- a/include/linux/rbtree_latch.h~rbtree-include-rcuh-because-we-use-it
+++ a/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];
_
--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux