]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
RDMA: Fix dependencies for rdma_user_mmap_io
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Sep 2018 19:36:52 +0000 (21:36 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 26 Nov 2019 12:17:06 +0000 (13:17 +0100)
commit6cbc57ea781dbbff800cbc8a5d44d8123175a5a0
tree393e157f91bdb85add2e3c3ce09fdf24d34dfd60
parentc0446eae63e057d79a4d6a07686c452b41032dd9
RDMA: Fix dependencies for rdma_user_mmap_io

BugLink: https://bugs.launchpad.net/bugs/1853915
[ Upstream commit 46bdf777685677c1cc6b3da9220aace9da690731 ]

The mlx4 driver produces a link error when it is configured
as built-in while CONFIG_INFINIBAND_USER_ACCESS is set to =m:

drivers/infiniband/hw/mlx4/main.o: In function `mlx4_ib_mmap':
main.c:(.text+0x1af4): undefined reference to `rdma_user_mmap_io'

The same function is called from mlx5, which already has a
dependency to ensure we can call it, and from hns, which
appears to suffer from the same problem.

This adds the same dependency that mlx5 uses to the other two.

Fixes: 6745d356ab39 ("RDMA/hns: Use rdma_user_mmap_io")
Fixes: c282da4109e4 ("RDMA/mlx4: Use rdma_user_mmap_io")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/infiniband/hw/hns/Kconfig
drivers/infiniband/hw/mlx4/Kconfig