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.

tools/testing: include maple-shim.c in maple.c

There's some duplicated code and we are about to add more functionality
in maple-shared.h that we will need in the userspace maple test to be
available, so include it via maple-shim.c

Co-developed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>

+3 -9
+3 -9
tools/testing/radix-tree/maple.c
··· 8 8 * difficult to handle in kernel tests. 9 9 */ 10 10 11 - #define CONFIG_DEBUG_MAPLE_TREE 12 - #define CONFIG_MAPLE_SEARCH 13 - #define MAPLE_32BIT (MAPLE_NODE_SLOTS > 31) 14 - #include "test.h" 15 - #include <stdlib.h> 16 - #include <time.h> 17 - #include <linux/init.h> 18 - 19 11 #define module_init(x) 20 12 #define module_exit(x) 21 13 #define MODULE_AUTHOR(x) ··· 15 23 #define MODULE_LICENSE(x) 16 24 #define dump_stack() assert(0) 17 25 18 - #include "../../../lib/maple_tree.c" 26 + #include "test.h" 27 + 28 + #include "../shared/maple-shim.c" 19 29 #include "../../../lib/test_maple_tree.c" 20 30 21 31 #define RCU_RANGE_COUNT 1000