mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 06:43:06 +07:00
46bdf77768
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:6745d356ab
("RDMA/hns: Use rdma_user_mmap_io") Fixes:c282da4109
("RDMA/mlx4: Use rdma_user_mmap_io") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
13 lines
480 B
Plaintext
13 lines
480 B
Plaintext
config MLX4_INFINIBAND
|
|
tristate "Mellanox ConnectX HCA support"
|
|
depends on NETDEVICES && ETHERNET && PCI && INET
|
|
depends on INFINIBAND_USER_ACCESS || !INFINIBAND_USER_ACCESS
|
|
depends on MAY_USE_DEVLINK
|
|
select NET_VENDOR_MELLANOX
|
|
select MLX4_CORE
|
|
---help---
|
|
This driver provides low-level InfiniBand support for
|
|
Mellanox ConnectX PCI Express host channel adapters (HCAs).
|
|
This is required to use InfiniBand protocols such as
|
|
IP-over-IB or SRP with these devices.
|