Re: [net-next PATCH 1/2] mlxsw: spectrum_kvdl: use div_u64() for 64-bit division

2018-02-26 Thread David Miller
From: Arnd Bergmann Date: Fri, 23 Feb 2018 14:15:31 +0100 > Calculating the number of entries now uses 64-bit arithmetic that > causes a link error on 32-bit architectures: > > drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.o: In function > `mlxsw_sp_kvdl_init': > spectrum_kvdl.c:(.text+0x51

Re: [net-next PATCH 1/2] mlxsw: spectrum_kvdl: use div_u64() for 64-bit division

2018-02-25 Thread Arkadi Sharshevsky
On 02/23/2018 03:15 PM, Arnd Bergmann wrote: > Calculating the number of entries now uses 64-bit arithmetic that > causes a link error on 32-bit architectures: > > drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.o: In function > `mlxsw_sp_kvdl_init': > spectrum_kvdl.c:(.text+0x51c): undefined

[net-next PATCH 1/2] mlxsw: spectrum_kvdl: use div_u64() for 64-bit division

2018-02-23 Thread Arnd Bergmann
Calculating the number of entries now uses 64-bit arithmetic that causes a link error on 32-bit architectures: drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.o: In function `mlxsw_sp_kvdl_init': spectrum_kvdl.c:(.text+0x51c): undefined reference to `__aeabi_uldivmod' We could probably use a 3