All of lore.kernel.org
 help / color / mirror / Atom feed
* testing/radix-tree: undefined reference to `kmem_cache_alloc_lru'
@ 2022-04-14  7:49 Bruno Goncalves
       [not found] ` <CAEemH2cQ2NrjS_3FoCKpOV8faF59WcJU+jZ0sJEHC0yXgxfYCg@mail.gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Bruno Goncalves @ 2022-04-14  7:49 UTC (permalink / raw)
  To: LKML; +Cc: CKI Project

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: testing/radix-tree: undefined reference to `kmem_cache_alloc_lru'
       [not found] ` <CAEemH2cQ2NrjS_3FoCKpOV8faF59WcJU+jZ0sJEHC0yXgxfYCg@mail.gmail.com>
@ 2022-04-15  4:31   ` Matthew Wilcox
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2022-04-15  4:31 UTC (permalink / raw)
  To: Li Wang; +Cc: Bruno Goncalves, Muchun Song, LKML, CKI Project

On Fri, Apr 15, 2022 at 12:19:29PM +0800, Li Wang wrote:
> Cc'ing Matthew and Muchun for being aware of this.
> 
> Seems we have to port the new kmem_cache_alloc_lru() function into
> tools/testing/radix-tree/linux.c as well.

I have that fix, just haven't sent it to Linus yet.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-15  4:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-14  7:49 testing/radix-tree: undefined reference to `kmem_cache_alloc_lru' Bruno Goncalves
     [not found] ` <CAEemH2cQ2NrjS_3FoCKpOV8faF59WcJU+jZ0sJEHC0yXgxfYCg@mail.gmail.com>
2022-04-15  4:31   ` Matthew Wilcox

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.