Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+13 -2
+4
drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.h
··· 53 53 usnic_uiom_interval_tree_remove(struct usnic_uiom_interval_node *node, 54 54 struct rb_root_cached *root); 55 55 extern struct usnic_uiom_interval_node * 56 + usnic_uiom_interval_tree_subtree_search(struct usnic_uiom_interval_node *node, 57 + unsigned long start, 58 + unsigned long last); 59 + extern struct usnic_uiom_interval_node * 56 60 usnic_uiom_interval_tree_iter_first(struct rb_root_cached *root, 57 61 unsigned long start, 58 62 unsigned long last);
+4
include/linux/interval_tree.h
··· 20 20 struct rb_root_cached *root); 21 21 22 22 extern struct interval_tree_node * 23 + interval_tree_subtree_search(struct interval_tree_node *node, 24 + unsigned long start, unsigned long last); 25 + 26 + extern struct interval_tree_node * 23 27 interval_tree_iter_first(struct rb_root_cached *root, 24 28 unsigned long start, unsigned long last); 25 29
+1 -1
include/linux/interval_tree_generic.h
··· 77 77 * Cond2: start <= ITLAST(node) \ 78 78 */ \ 79 79 \ 80 - static ITSTRUCT * \ 80 + ITSTATIC ITSTRUCT * \ 81 81 ITPREFIX ## _subtree_search(ITSTRUCT *node, ITTYPE start, ITTYPE last) \ 82 82 { \ 83 83 while (true) { \
+2
include/linux/mm.h
··· 3369 3369 struct rb_root_cached *root); 3370 3370 void vma_interval_tree_remove(struct vm_area_struct *node, 3371 3371 struct rb_root_cached *root); 3372 + struct vm_area_struct *vma_interval_tree_subtree_search(struct vm_area_struct *node, 3373 + unsigned long start, unsigned long last); 3372 3374 struct vm_area_struct *vma_interval_tree_iter_first(struct rb_root_cached *root, 3373 3375 unsigned long start, unsigned long last); 3374 3376 struct vm_area_struct *vma_interval_tree_iter_next(struct vm_area_struct *node,
+1
lib/interval_tree.c
··· 13 13 14 14 EXPORT_SYMBOL_GPL(interval_tree_insert); 15 15 EXPORT_SYMBOL_GPL(interval_tree_remove); 16 + EXPORT_SYMBOL_GPL(interval_tree_subtree_search); 16 17 EXPORT_SYMBOL_GPL(interval_tree_iter_first); 17 18 EXPORT_SYMBOL_GPL(interval_tree_iter_next); 18 19
+1 -1
tools/include/linux/interval_tree_generic.h
··· 77 77 * Cond2: start <= ITLAST(node) \ 78 78 */ \ 79 79 \ 80 - static ITSTRUCT * \ 80 + ITSTATIC ITSTRUCT * \ 81 81 ITPREFIX ## _subtree_search(ITSTRUCT *node, ITTYPE start, ITTYPE last) \ 82 82 { \ 83 83 while (true) { \