Userspace builds of the radix-tree testing suite fails because of commit test_maple_tree: add the missing MODULE_DESCRIPTION() macro. Add the proper defines to tools/testing/radix-tree/maple.c and tools/testing/radix-tree/xarray.c so MODULE_DESCRIPTION has a definition. This allows the build to succeed. Link: https://lkml.kernel.org/r/20240617195221.106565-1-sidhartha.kumar@oracle.com Fixes: 9f8090e8c4d1 ("test_maple_tree: add the missing MODULE_DESCRIPTION() macro") Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com> Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com> Cc: Jeff Johnson <quic_jjohnson@quicinc.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
38 lines
731 B
C
38 lines
731 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* xarray.c: Userspace shim for XArray test-suite
|
|
* Copyright (c) 2018 Matthew Wilcox <willy@infradead.org>
|
|
*/
|
|
|
|
#define XA_DEBUG
|
|
#include "test.h"
|
|
|
|
#define module_init(x)
|
|
#define module_exit(x)
|
|
#define MODULE_AUTHOR(x)
|
|
#define MODULE_DESCRIPTION(X)
|
|
#define MODULE_LICENSE(x)
|
|
#define dump_stack() assert(0)
|
|
|
|
#include "../../../lib/xarray.c"
|
|
#undef XA_DEBUG
|
|
#include "../../../lib/test_xarray.c"
|
|
|
|
void xarray_tests(void)
|
|
{
|
|
xarray_checks();
|
|
xarray_exit();
|
|
}
|
|
|
|
int __weak main(void)
|
|
{
|
|
rcu_register_thread();
|
|
radix_tree_init();
|
|
xarray_tests();
|
|
radix_tree_cpu_dead(1);
|
|
rcu_barrier();
|
|
if (nr_allocated)
|
|
printf("nr_allocated = %d\n", nr_allocated);
|
|
rcu_unregister_thread();
|
|
return 0;
|
|
}
|