aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2019-09-23 15:32:59 -0700
committerLinus Torvalds <[email protected]>2019-09-24 15:54:06 -0700
commit710ec38b0f633ab3e2581f07a73442d809e28ab0 (patch)
tree04162925861aa1b155b1d5f691b514f172db73cb /include/linux/debugobjects.h
parent6e73fd25e2c7510b7dfadbaf701f31d4bff9c75b (diff)
mm: add dummy can_do_mlock() helper
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: 2251334dcac9 ("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]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions