]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA: Fix building with CONFIG_MMU=n
authorJason Gunthorpe <jgg@mellanox.com>
Fri, 28 Sep 2018 21:20:23 +0000 (15:20 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Oct 2018 22:01:03 +0000 (16:01 -0600)
commitbf632ab8ab21f30fa8a302ac00ece14e699a6a8d
tree9a232dc5d8e07c839bb12141be7a3e2c1a217253
parenta44e29d9b5d70a09f7229f4229baa777865a70d8
RDMA: Fix building with CONFIG_MMU=n

The zap_vma_ptes() is declared but not defined on NOMMU kernels, causing a
link error for the newly added uverbs code:

drivers/infiniband/core/uverbs_main.o: In function `uverbs_user_mmap_disassociate':
uverbs_main.c:(.text+0x114c): undefined reference to `zap_vma_ptes'
drivers/infiniband/core/uverbs_main.o: In function `rdma_umap_open':
uverbs_main.c:(.text+0x53c): undefined reference to `zap_vma_ptes'

Since all user access for all of our drivers depend on remapping pages to
user space disable USER_ACCESS when there is no mmu.

Fixes: 595e40b754cd ("RDMA/ucontext: Add a core API for mmaping driver IO memory")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/Kconfig