linux/drivers/infiniband/hw/mlx5
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
..
ah.c
cmd.c IB/mlx5: Enable UAR to have DevX UID 2021-09-28 18:31:21 +03:00
cmd.h IB/mlx5: Enable UAR to have DevX UID 2021-09-28 18:31:21 +03:00
cong.c RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
counters.c RDMA/mlx5: fix build error with INFINIBAND_USER_ACCESS=n 2021-10-25 14:16:05 -03:00
counters.h RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
cq.c Merge branch 'sg_nents' into rdma.git for-next 2021-08-30 09:49:59 -03:00
devx.c RDMA/mlx5: Attach ndescs to mlx5_ib_mkey 2021-10-19 14:42:53 +03:00
devx.h RDMA/mlx5: Attach ndescs to mlx5_ib_mkey 2021-10-19 14:42:53 +03:00
dm.c RDMA/mlx5: Verify that DM operation is reasonable 2021-05-17 13:52:47 -03:00
dm.h RDMA/mlx5: Expose UAPI to query DM 2021-04-13 19:36:37 -03:00
doorbell.c RDMA: Use the sg_table directly and remove the opencoded version from umem 2021-08-24 19:52:40 -03:00
fs.c RDMA/mlx5: Add steering support in optional flow counters 2021-10-12 12:48:06 -03:00
fs.h
gsi.c RDMA: Globally allocate and release QP memory 2021-08-03 13:44:27 -03:00
ib_rep.c RDMA/mlx5: Add shared FDB support 2021-08-05 13:49:24 -07:00
ib_rep.h RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
ib_virt.c RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
Kconfig
mad.c RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
main.c IB/mlx5: Enable UAR to have DevX UID 2021-09-28 18:31:21 +03:00
Makefile RDMA/mlx5: Move all DM logic to separate file 2021-04-13 19:36:36 -03:00
mem.c
mlx5_ib.h Merge brank 'mlx5_mkey' into rdma.git for-next 2021-10-19 14:09:25 -03:00
mr.c Merge brank 'mlx5_mkey' into rdma.git for-next 2021-10-19 14:09:25 -03:00
odp.c Merge brank 'mlx5_mkey' into rdma.git for-next 2021-10-19 14:09:25 -03:00
qos.c
qp.c RDMA/mlx5: Relax DCS QP creation checks 2021-08-30 09:47:40 -03:00
qp.h
qpc.c RDMA/mlx5: Support SQD2RTS for modify QP 2021-05-20 11:41:07 -03:00
restrack.c
restrack.h
srq.c RDMA/mlx5: Remove unused parameter udata 2021-05-20 11:52:17 -03:00
srq.h
srq_cmd.c
std_types.c RDMA/mlx5: Fill port info based on the relevant eswitch 2021-08-05 13:49:24 -07:00
wr.c RDMA/mlx5: Attach ndescs to mlx5_ib_mkey 2021-10-19 14:42:53 +03:00
wr.h