Re: [PATCH] mlxsw: spectrum_ptp: fix 32-bit build

2019-06-20 Thread Sergei Shtylyov
Hello! On 19.06.2019 16:31, Arnd Bergmann wrote: On 32-bit architectures, we cannot easily device 64-bit numbers: s/device/divide/? ERROR: "__aeabi_uldivmod" [drivers/net/ethernet/mellanox/mlxsw/mlxsw_spectrum.ko] undefined! Use do_div() to annotate the fact that we know this is an

Re: [PATCH] mlxsw: spectrum_ptp: fix 32-bit build

2019-06-19 Thread Ido Schimmel
On Wed, Jun 19, 2019 at 03:31:20PM +0200, Arnd Bergmann wrote: > On 32-bit architectures, we cannot easily device 64-bit numbers: > > ERROR: "__aeabi_uldivmod" > [drivers/net/ethernet/mellanox/mlxsw/mlxsw_spectrum.ko] undefined! > > Use do_div() to annotate the fact that we know this is an >

[PATCH] mlxsw: spectrum_ptp: fix 32-bit build

2019-06-19 Thread Arnd Bergmann
On 32-bit architectures, we cannot easily device 64-bit numbers: ERROR: "__aeabi_uldivmod" [drivers/net/ethernet/mellanox/mlxsw/mlxsw_spectrum.ko] undefined! Use do_div() to annotate the fact that we know this is an expensive operation. Fixes: 992aa864dca0 ("mlxsw: spectrum_ptp: Add