1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/testing/radix-tree/linux
Luis Chamberlain a7575bc541 tools: fix userspace compilation with new test_xarray changes
Patch series "test_xarray: couple of fixes for v6-9-rc6", v2.

Here are a couple of fixes which should be merged into the queue for
v6.9-rc6.  The first one was reported by Liam, after fixing that I noticed
an issue with a test, and a fix for that is in the second patch.


This patch (of 2):

Liam reported that compiling the test_xarray on userspace was broken.  I
was not even aware that was possible but you can via and you can run these
tests in userspace with:

make -C tools/testing/radix-tree
./tools/testing/radix-tree/xarray

Add the two helpers we need to fix compilation.  We don't need a userspace
schedule() so just make it do nothing.

Link: https://lkml.kernel.org/r/20240423192221.301095-1-mcgrof@kernel.org
Link: https://lkml.kernel.org/r/20240423192221.301095-2-mcgrof@kernel.org
Fixes: a60cc288a1 ("test_xarray: add tests for advanced multi-index use")
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Reported-by: "Liam R. Howlett" <Liam.Howlett@oracle.com>
Cc: Daniel Gomez <da.gomez@samsung.com>
Cc: Darrick J. Wong <djwong@kernel.org>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Pankaj Raghav <p.raghav@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2024-05-05 17:28:05 -07:00
..
bug.h xarray: Add definition of struct xarray 2018-10-21 10:45:53 -04:00
cpu.h redo: radix tree test suite: fix compilation 2016-12-15 11:04:20 -08:00
idr.h Reimplement IDR and IDA using the radix tree 2017-02-13 21:44:01 -05:00
init.h maple_tree: add __init and __exit to test module 2023-06-09 16:25:31 -07:00
kconfig.h xarray: Add definition of struct xarray 2018-10-21 10:45:53 -04:00
kernel.h tools: fix userspace compilation with new test_xarray changes 2024-05-05 17:28:05 -07:00
kmemleak.h radix tree test harness 2016-03-17 15:09:34 -07:00
local_lock.h radix tree test suite: Fix compilation 2020-10-07 09:07:49 -04:00
lockdep.h radix tree test suite: add lockdep_is_held to header 2022-09-26 19:46:14 -07:00
maple_tree.h maple_tree: move debug check to __mas_set_range() 2023-12-12 10:56:57 -08:00
percpu.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
preempt.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
radix-tree.h xarray: Replace exceptional entries 2018-09-29 22:47:49 -04:00
rcupdate.h rcu: Don't return a value from rcu_assign_pointer() 2019-06-13 15:38:34 -07:00
xarray.h radix tree test suite: Fix compilation 2018-08-21 23:31:20 -04:00