[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Ywx3k6orcutPs7Lf@kernel.org>
Date: Mon, 29 Aug 2022 11:23:47 +0300
From: Mike Rapoport <rppt@...nel.org>
To: Song Chen <chensong_2000@....cn>
Cc: karolinadrobnik@...il.com, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [PATCH 1/2] tools/libs/slab.c: fix compiling mistakes of
uatomic_inc/uatomic_dec
On Mon, Aug 29, 2022 at 02:38:41PM +0800, Song Chen wrote:
> I tried to build tools/test/memblock and got such message:
>
> /usr/bin/ld: slab.o: in function `kmalloc':
> slab.c:(.text+0x2b): undefined reference to `uatomic_inc'
> /usr/bin/ld: slab.o: in function `kfree':
> slab.c:(.text+0x97): undefined reference to `uatomic_dec'
> collect2: error: ld returned 1 exit status
>
> I could find any definition or inplememtation of uatomic_inc/uatomic_dec
> in anywhere of the code base. So I use atomic_inc/atomic_dec_and_test
> to replace like other tests underneath tools/test, it works.
They are defined in liburcu headers, in Debian they are found in
liburcu-dev package.
> Signed-off-by: Song Chen <chensong_2000@....cn>
> ---
--
Sincerely yours,
Mike.
Powered by blists - more mailing lists