Re: [PATCH bpf-next] xsk: fix 64-bit division

From: Daniel Borkmann
Date: Wed May 09 2018 - 12:13:48 EST


On 05/07/2018 08:25 PM, Randy Dunlap wrote:
> On 05/07/2018 10:43 AM, BjÃrn TÃpel wrote:
>> From: BjÃrn TÃpel <bjorn.topel@xxxxxxxxx>
>>
>> i386 builds report:
>> net/xdp/xdp_umem.o: In function `xdp_umem_reg':
>> xdp_umem.c:(.text+0x47e): undefined reference to `__udivdi3'
>>
>> This fix uses div_u64 instead of the GCC built-in.
>>
>> Fixes: c0c77d8fb787 ("xsk: add user memory registration support sockopt")
>> Signed-off-by: BjÃrn TÃpel <bjorn.topel@xxxxxxxxx>
>
> I don't know why the subject says xsk (instead of xdp), but anyway:
>
> Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> Tested-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>

Applied to bpf-next, thanks everyone!