Re: [PATCH] ib_umem: fix type mismatch

2019-09-08 Thread Arnd Bergmann
On Sun, Sep 8, 2019 at 10:10 AM Leon Romanovsky wrote: > On Fri, Sep 06, 2019 at 05:42:37PM +0200, Arnd Bergmann wrote: > > I had slightly different fix in my submission queue, which I think is > better because it leaves length to be size_t. > >

Re: [PATCH] ib_umem: fix type mismatch

2019-09-08 Thread Leon Romanovsky
On Fri, Sep 06, 2019 at 05:42:37PM +0200, Arnd Bergmann wrote: > On some 32-bit architectures, size_t is defined as 'int' rather > than 'long', causing a harmless warning: > > drivers/infiniband/core/umem_odp.c:220:7: error: comparison of distinct > pointer types ('typeof (umem_odp->umem.address)

[PATCH] ib_umem: fix type mismatch

2019-09-06 Thread Arnd Bergmann
On some 32-bit architectures, size_t is defined as 'int' rather than 'long', causing a harmless warning: drivers/infiniband/core/umem_odp.c:220:7: error: comparison of distinct pointer types ('typeof (umem_odp->umem.address) *' (aka 'unsigned long *') and 'typeof (umem_odp->umem.length) *' (aka