Re: [PATCH 5/9] XArray: entry in last level is not expected to be a node
From: Wei Yang
Date: Fri Apr 03 2020 - 18:39:38 EST
On Wed, Apr 01, 2020 at 03:20:00PM -0700, Matthew Wilcox wrote:
>On Wed, Apr 01, 2020 at 10:10:21PM +0000, Wei Yang wrote:
>> On Tue, Mar 31, 2020 at 04:59:12PM -0700, Matthew Wilcox wrote:
>> >On Tue, Mar 31, 2020 at 10:04:40PM +0000, Wei Yang wrote:
>> >> cc -I. -I../../include -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined -c -o main.o main.c
>> >> In file included from ./linux/../../../../include/linux/radix-tree.h:15,
>> >> from ./linux/radix-tree.h:5,
>> >> from main.c:10:
>> >> ./linux/rcupdate.h:5:10: fatal error: urcu.h: No such file or directory
>> >> 5 | #include <urcu.h>
>> >> | ^~~~~~~~
>> >> compilation terminated.
>> >> make: *** [<builtin>: main.o] Error 1
>> >
>> >Oh, you need liburcu installed. On Debian, that's liburcu-dev ... probably
>> >liburcu-devel on Red Hat style distros.
>>
>> The bad news is I didn't find the package on Fedora.
>
>Really? https://www.google.com/search?q=fedora+liburcu has the -devel
>package as the second hit from https://pkgs.org/search/?q=liburcu
Did a run on 5.6 without my change. The output is
[root@debug010000002015 radix-tree]# ./main
random seed 1585904186
running tests
XArray: 21151201 of 21151201 tests passed
vvv Ignore these warnings
assertion failed at idr.c:269
assertion failed at idr.c:206
^^^ Warnings over
IDA: 34980531 of 34980531 tests passed
tests completed
Is these two assertion expected?
--
Wei Yang
Help you, Help me