linux/drivers/infiniband/hw
Arnd Bergmann 97ad8c8c71 RDMA/mlx5: fix build error with INFINIBAND_USER_ACCESS=n
The mlx5_ib_fs_add_op_fc/mlx5_ib_fs_remove_op_fc functions are only
available when user access is enabled, without that we run into a link
error:

ERROR: modpost: "mlx5_ib_fs_add_op_fc" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined!
ERROR: modpost: "mlx5_ib_fs_remove_op_fc" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined!

Conditionally compiling the newly added code section makes it build,
though this is probably not a correct fix.

Fixes: a29b934ceb ("RDMA/mlx5: Add modify_op_stat() support")
Link: https://lore.kernel.org/r/20211019061602.3062196-1-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-10-25 14:16:05 -03:00
..
bnxt_re RDMA/counter: Add a descriptor in struct rdma_hw_stats 2021-10-12 12:48:04 -03:00
cxgb4 RDMA: Remove redundant 'flush_workqueue()' calls 2021-10-12 13:21:23 -03:00
efa RDMA/counter: Add a descriptor in struct rdma_hw_stats 2021-10-12 12:48:04 -03:00
hfi1 RDMA/counter: Add a descriptor in struct rdma_hw_stats 2021-10-12 12:48:04 -03:00
hns RDMA/hns: Use dma_alloc_coherent() instead of kmalloc/dma_map_single() 2021-10-12 12:54:51 -03:00
irdma RDMA/irdma: Make irdma_uk_cq_init() return a void 2021-10-20 19:54:16 -03:00
mlx4 RDMA/mlx4: Return missed an error if device doesn't support steering 2021-10-12 13:23:23 -03:00
mlx5 RDMA/mlx5: fix build error with INFINIBAND_USER_ACCESS=n 2021-10-25 14:16:05 -03:00
mthca RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
ocrdma RDMA: Globally allocate and release QP memory 2021-08-03 13:44:27 -03:00
qedr Merge branch 'sg_nents' into rdma.git for-next 2021-08-30 09:49:59 -03:00
qib IB/qib: Fix clang confusion of NULL pointer comparison 2021-09-13 16:28:39 -03:00
usnic RDMA/usnic: Lock VF with mutex instead of spinlock 2021-09-24 10:55:28 -03:00
vmw_pvrdma RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
Makefile RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00