Re: [PATCH] rdma/siw: fix NOMMU build

2019-09-07 Thread Arnd Bergmann
On Sat, Sep 7, 2019 at 9:34 AM Jason Gunthorpe wrote: > > @@ -374,7 +374,7 @@ struct siw_umem *siw_umem_get(u64 start, u64 len, bool > > writable) > > unsigned int foll_flags = FOLL_WRITE; > > int num_pages, num_chunks, i, rv = 0; > > > > - if (!can_do_mlock()) > > + if

Re: [PATCH] rdma/siw: fix NOMMU build

2019-09-07 Thread Jason Gunthorpe
On Fri, Sep 06, 2019 at 05:10:10PM +0200, Arnd Bergmann wrote: > On kernels without CONFIG_MMU, we get a link error for the siw > driver: > > drivers/infiniband/sw/siw/siw_mem.o: In function `siw_umem_get': > siw_mem.c:(.text+0x4c8): undefined reference to `can_do_mlock' > > I don't know whether

[PATCH] rdma/siw: fix NOMMU build

2019-09-06 Thread Arnd Bergmann
On kernels without CONFIG_MMU, we get a link error for the siw driver: drivers/infiniband/sw/siw/siw_mem.o: In function `siw_umem_get': siw_mem.c:(.text+0x4c8): undefined reference to `can_do_mlock' I don't know whether this driver is able to work at all without an MMU, but it's easy to avoid