summaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/linux/init.h
diff options
context:
space:
mode:
authorRoss Zwisler2016-05-21 02:02:49 +0200
committerLinus Torvalds2016-05-21 02:58:30 +0200
commiteb73f7f3300c144c4b886dd56ea4c3d2b2d58249 (patch)
tree9c279c227ad54eaa9ae04b25af12c55e9b66e978 /tools/testing/radix-tree/linux/init.h
parentradix-tree: rewrite radix_tree_locate_item (diff)
downloadkernel-qcow2-linux-eb73f7f3300c144c4b886dd56ea4c3d2b2d58249.tar.gz
kernel-qcow2-linux-eb73f7f3300c144c4b886dd56ea4c3d2b2d58249.tar.xz
kernel-qcow2-linux-eb73f7f3300c144c4b886dd56ea4c3d2b2d58249.zip
radix-tree: add test for radix_tree_locate_item()
Add a unit test that provides coverage for the bug fixed in the commit entitled "radix-tree: rewrite radix_tree_locate_item fix" from Hugh Dickins. I've verified that this test fails before his patch due to miscalculated 'index' values in __locate() in lib/radix-tree.c, and passes with his fix. Link: http://lkml.kernel.org/r/1462307263-20623-1-git-send-email-ross.zwisler@linux.intel.com Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/testing/radix-tree/linux/init.h')
-rw-r--r--tools/testing/radix-tree/linux/init.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/radix-tree/linux/init.h b/tools/testing/radix-tree/linux/init.h
new file mode 100644
index 000000000000..360cabb3c4e7
--- /dev/null
+++ b/tools/testing/radix-tree/linux/init.h
@@ -0,0 +1 @@
+/* An empty file stub that allows radix-tree.c to compile. */