summaryrefslogtreecommitdiff
path: root/include/linux/interval_tree.h
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2025-09-18 19:30:03 +0300
committerJosh Poimboeuf <jpoimboe@kernel.org>2025-10-15 00:45:22 +0300
commitb37491d72b43c3a322d396c2d8e951a10be70c17 (patch)
tree68d56b9b8dedef234588562ca0e26b406ba2d8bb /include/linux/interval_tree.h
parent9b7eacac22693d9177402c9d63e1c1747653d28c (diff)
downloadlinux-b37491d72b43c3a322d396c2d8e951a10be70c17.tar.xz
interval_tree: Fix ITSTATIC usage for *_subtree_search()
For consistency with the other function templates, change _subtree_search_*() to use the user-supplied ITSTATIC rather than the hard-coded 'static'. Acked-by: Petr Mladek <pmladek@suse.com> Tested-by: Joe Lawrence <joe.lawrence@redhat.com> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'include/linux/interval_tree.h')
-rw-r--r--include/linux/interval_tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/interval_tree.h b/include/linux/interval_tree.h
index 2b8026a39906..9d5791e9f737 100644
--- a/include/linux/interval_tree.h
+++ b/include/linux/interval_tree.h
@@ -20,6 +20,10 @@ interval_tree_remove(struct interval_tree_node *node,
struct rb_root_cached *root);
extern struct interval_tree_node *
+interval_tree_subtree_search(struct interval_tree_node *node,
+ unsigned long start, unsigned long last);
+
+extern struct interval_tree_node *
interval_tree_iter_first(struct rb_root_cached *root,
unsigned long start, unsigned long last);