Skip to content

Commit 9f910f7

Browse files
committed
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 <[email protected]> Signed-off-by: Liam R. Howlett <[email protected]> Reviewed-by: Suren Baghdasaryan <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]>
1 parent 59faa4d commit 9f910f7

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tools/testing/radix-tree/maple.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,16 @@
88
* difficult to handle in kernel tests.
99
*/
1010

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-
1911
#define module_init(x)
2012
#define module_exit(x)
2113
#define MODULE_AUTHOR(x)
2214
#define MODULE_DESCRIPTION(X)
2315
#define MODULE_LICENSE(x)
2416
#define dump_stack() assert(0)
2517

26-
#include "../../../lib/maple_tree.c"
18+
#include "test.h"
19+
20+
#include "../shared/maple-shim.c"
2721
#include "../../../lib/test_maple_tree.c"
2822

2923
#define RCU_RANGE_COUNT 1000

0 commit comments

Comments
 (0)