testing/radix-tree: undefined reference to `kmem_cache_alloc_lru'
From: Bruno Goncalves
Date: Thu Apr 14 2022 - 03:50:26 EST
Hello,
Trying to build testing/radix-tree on mainline kernel fails with:
make -C tools/testing/radix-tree/
<snip>
cc -fsanitize=address -fsanitize=undefined main.o xarray.o
radix-tree.o idr.o linux.o test.o find_bit.o bitmap.o slab.o
regression1.o regression2.o regression3.o regression4.o tag_check.o
multiorder.o idr-test.o iteration_check.o iteration_check_2.o
benchmark.o -lpthread -lurcu -o main
/usr/bin/ld: xarray.o: in function `xas_split_alloc':
/root/linux/tools/testing/radix-tree/../../../lib/xarray.c:1019:
undefined reference to `kmem_cache_alloc_lru'
/usr/bin/ld: xarray.o: in function `xas_nomem':
/root/linux/tools/testing/radix-tree/../../../lib/xarray.c:305:
undefined reference to `kmem_cache_alloc_lru'
/usr/bin/ld: xarray.o: in function `xas_alloc':
/root/linux/tools/testing/radix-tree/../../../lib/xarray.c:374:
undefined reference to `kmem_cache_alloc_lru'
/usr/bin/ld: xarray.o: in function `__xas_nomem':
/root/linux/tools/testing/radix-tree/../../../lib/xarray.c:337:
undefined reference to `kmem_cache_alloc_lru'
/usr/bin/ld: /root/linux/tools/testing/radix-tree/../../../lib/xarray.c:340:
undefined reference to `kmem_cache_alloc_lru'
collect2: error: ld returned 1 exit status
make: *** [<builtin>: main] Error 1
Thanks,
Bruno Goncalves