Re: [PATCH 1/3] infiniband: rxe: avoid 64-bit division

2016-06-13 Thread Moni Shoua
thanks. will be applied to next series On Mon, Jun 13, 2016 at 4:18 PM, Leon Romanovsky wrote: > On Mon, Jun 13, 2016 at 02:54:53PM +0200, Arnd Bergmann wrote: >> The rxe driver fails to build on 32-bit because of a 64-bit division: >> >> In function `rxe_qp_from_attr': >> :(.text+0x53158): undef

Re: [PATCH 1/3] infiniband: rxe: avoid 64-bit division

2016-06-13 Thread Leon Romanovsky
On Mon, Jun 13, 2016 at 02:54:53PM +0200, Arnd Bergmann wrote: > The rxe driver fails to build on 32-bit because of a 64-bit division: > > In function `rxe_qp_from_attr': > :(.text+0x53158): undefined reference to `__aeabi_uldivmod' > > We can easily avoid this division by converting the nanoseco

[PATCH 1/3] infiniband: rxe: avoid 64-bit division

2016-06-13 Thread Arnd Bergmann
The rxe driver fails to build on 32-bit because of a 64-bit division: In function `rxe_qp_from_attr': :(.text+0x53158): undefined reference to `__aeabi_uldivmod' We can easily avoid this division by converting the nanosecond value into jiffies directly rather than converting to microseconds first