xref: /openbmc/linux/lib/interval_tree.c (revision 9826a516ff77c5820e591211e4f3e58ff36f46be)
1fff3fd8aSMichel Lespinasse #include <linux/init.h>
2fff3fd8aSMichel Lespinasse #include <linux/interval_tree.h>
3*9826a516SMichel Lespinasse #include <linux/interval_tree_generic.h>
4fff3fd8aSMichel Lespinasse 
5*9826a516SMichel Lespinasse #define START(node) ((node)->start)
6*9826a516SMichel Lespinasse #define LAST(node)  ((node)->last)
7fff3fd8aSMichel Lespinasse 
8*9826a516SMichel Lespinasse INTERVAL_TREE_DEFINE(struct interval_tree_node, rb,
9*9826a516SMichel Lespinasse 		     unsigned long, __subtree_last,
10*9826a516SMichel Lespinasse 		     START, LAST,, interval_tree)
11