Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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' This is probably not the only driver that needs the function and could otherwise build correctly without CONFIG_MMU, so add a dummy variant that always returns false. Link: http://lkml.kernel.org/r/[email protected] Fixes: 2251334 ("rdma/siw: application buffer management") Signed-off-by: Arnd Bergmann <[email protected]> Suggested-by: Jason Gunthorpe <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Bernard Metzler <[email protected]> Cc: "Matthew Wilcox (Oracle)" <[email protected]> Cc: "Kirill A. Shutemov" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information