The patch titled Subject: radix-tree: remove unused looping macros has been added to the -mm tree. Its filename is radix-tree-remove-unused-looping-macros.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/radix-tree-remove-unused-looping-macros.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/radix-tree-remove-unused-looping-macros.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx> Subject: radix-tree: remove unused looping macros radix_tree_for_each_chunk() and radix_tree_for_each_chunk_slot() have never been used in the kernel since their introduction in 2012, so remove them. Signed-off-by: Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx> Signed-off-by: Matthew Wilcox <willy@xxxxxxxxxxxxxxx> Cc: Konstantin Khlebnikov <koct9i@xxxxxxxxx> Cc: Kirill Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> Cc: Jan Kara <jack@xxxxxxxx> Cc: Neil Brown <neilb@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/radix-tree.h | 28 ---------------------------- 1 file changed, 28 deletions(-) diff -puN include/linux/radix-tree.h~radix-tree-remove-unused-looping-macros include/linux/radix-tree.h --- a/include/linux/radix-tree.h~radix-tree-remove-unused-looping-macros +++ a/include/linux/radix-tree.h @@ -479,34 +479,6 @@ radix_tree_next_slot(void **slot, struct } /** - * radix_tree_for_each_chunk - iterate over chunks - * - * @slot: the void** variable for pointer to chunk first slot - * @root: the struct radix_tree_root pointer - * @iter: the struct radix_tree_iter pointer - * @start: iteration starting index - * @flags: RADIX_TREE_ITER_* and tag index - * - * Locks can be released and reacquired between iterations. - */ -#define radix_tree_for_each_chunk(slot, root, iter, start, flags) \ - for (slot = radix_tree_iter_init(iter, start) ; \ - (slot = radix_tree_next_chunk(root, iter, flags)) ;) - -/** - * radix_tree_for_each_chunk_slot - iterate over slots in one chunk - * - * @slot: the void** variable, at the beginning points to chunk first slot - * @iter: the struct radix_tree_iter pointer - * @flags: RADIX_TREE_ITER_*, should be constant - * - * This macro is designed to be nested inside radix_tree_for_each_chunk(). - * @slot points to the radix tree slot, @iter->index contains its index. - */ -#define radix_tree_for_each_chunk_slot(slot, iter, flags) \ - for (; slot ; slot = radix_tree_next_slot(slot, iter, flags)) - -/** * radix_tree_for_each_slot - iterate over non-empty slots * * @slot: the void** variable for pointer to slot _ Patches currently in -mm which might be from ross.zwisler@xxxxxxxxxxxxxxx are radix-tree-test-suite-allow-testing-other-fan-out-values.patch radix-tree-test-suite-keep-regression-test-runs-short.patch radix-tree-test-suite-rebuild-when-headers-change.patch radix-tree-remove-unused-looping-macros.patch radix-tree-add-support-for-multi-order-iterating.patch radix-tree-test-suite-multi-order-iteration-test.patch radix-tree-rewrite-radix_tree_tag_set.patch radix-tree-rewrite-radix_tree_tag_clear.patch radix-tree-rewrite-radix_tree_tag_get.patch radix-tree-test-suite-add-multi-order-tag-test.patch radix-tree-fix-radix_tree_dump-for-multi-order-entries.patch -- 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