drm/ast: Only warn about unsupported TX chips on Gen4 and later
[drm/drm-misc.git] / tools / testing / radix-tree / xarray.c
blob253208a8541b45abcd3ab4e6209e1a538c6b18b7
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3 * xarray.c: Userspace shim for XArray test-suite
4 * Copyright (c) 2018 Matthew Wilcox <willy@infradead.org>
5 */
7 #include "xarray-shared.h"
8 #include "test.h"
10 #undef XA_DEBUG
11 #include "../../../lib/test_xarray.c"
13 void xarray_tests(void)
15 xarray_checks();
16 xarray_exit();
19 int __weak main(void)
21 rcu_register_thread();
22 radix_tree_init();
23 xarray_tests();
24 radix_tree_cpu_dead(1);
25 rcu_barrier();
26 if (nr_allocated)
27 printf("nr_allocated = %d\n", nr_allocated);
28 rcu_unregister_thread();
29 return 0;