aboutsummaryrefslogtreecommitdiffstats
path: root/lib/interval_tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/interval_tree.c')
-rw-r--r--lib/interval_tree.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/interval_tree.c b/lib/interval_tree.c
index 77a793e0644b..e6eb406f2d65 100644
--- a/lib/interval_tree.c
+++ b/lib/interval_tree.c
@@ -1,13 +1,10 @@
1#include <linux/init.h> 1#include <linux/init.h>
2#include <linux/interval_tree.h> 2#include <linux/interval_tree.h>
3#include <linux/interval_tree_generic.h>
3 4
4#define ITSTRUCT struct interval_tree_node 5#define START(node) ((node)->start)
5#define ITRB rb 6#define LAST(node) ((node)->last)
6#define ITTYPE unsigned long
7#define ITSUBTREE __subtree_last
8#define ITSTART(n) ((n)->start)
9#define ITLAST(n) ((n)->last)
10#define ITSTATIC
11#define ITPREFIX interval_tree
12 7
13#include <linux/interval_tree_tmpl.h> 8INTERVAL_TREE_DEFINE(struct interval_tree_node, rb,
9 unsigned long, __subtree_last,
10 START, LAST,, interval_tree)