Skip to content

tools: Fix radix-tree test build failure

Waiman Long requested to merge llong1/centos-stream-9:bz2085412_xarray_test into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2085412
MR: !879 (merged)
Tested: With the patches applied, the radix-tree test can be built and run successfully.

Because of the recent changes in the list_lru code, the radix-tree test in tools/testing/radix-tree fails to build. This patchset includes 2 upstream commits to fix the build failure.

Signed-off-by: Waiman Long longman@redhat.com

Waiman Long (2):
  tools: Move gfp.h and slab.h from radix-tree to lib
  tools: Add kmem_cache_alloc_lru()

 tools/include/linux/gfp.h             | 28 ++++++++++++++++++++
 tools/include/linux/slab.h            | 34 ++++++++++++++++++++++++
 tools/lib/slab.c                      | 38 +++++++++++++++++++++++++++
 tools/testing/radix-tree/Makefile     |  3 ++-
 tools/testing/radix-tree/linux.c      | 30 ++-------------------
 tools/testing/radix-tree/linux/gfp.h  | 33 -----------------------
 tools/testing/radix-tree/linux/slab.h | 27 -------------------
 7 files changed, 104 insertions(+), 89 deletions(-)
 create mode 100644 tools/include/linux/slab.h
 create mode 100644 tools/lib/slab.c
 delete mode 100644 tools/testing/radix-tree/linux/gfp.h
 delete mode 100644 tools/testing/radix-tree/linux/slab.h
Edited by Waiman Long

Merge request reports