[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191031.135610.684836389491757031.davem@davemloft.net>
Date: Thu, 31 Oct 2019 13:56:10 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: natechancellor@...il.com
Cc: jiri@...lanox.com, idosch@...lanox.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next] mlxsw: Fix 64-bit division in
mlxsw_sp_sb_prs_init
From: Nathan Chancellor <natechancellor@...il.com>
Date: Wed, 30 Oct 2019 09:01:52 -0700
> When building for 32-bit ARM, there is a link time error because of a
> 64-bit division:
>
> ld.lld: error: undefined symbol: __aeabi_uldivmod
>>>> referenced by spectrum_buffers.c
>>>> net/ethernet/mellanox/mlxsw/spectrum_buffers.o:(mlxsw_sp_buffers_init) in archive drivers/built-in.a
>>>> did you mean: __aeabi_uidivmod
>>>> defined in: arch/arm/lib/lib.a(lib1funcs.o
>
> Avoid this by using div_u64, which is designed to avoid this problem.
>
> Fixes: bc9f6e94bcb5 ("mlxsw: spectrum_buffers: Calculate the size of the main pool")
> Signed-off-by: Nathan Chancellor <natechancellor@...il.com>
Applied, thanks.
Powered by blists - more mailing lists