aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2018-12-19 13:43:17 -0500
committerDoug Ledford <dledford@redhat.com>2018-12-19 13:43:17 -0500
commitc9e585ebdc28a334b8100e560c9aaad6d4525a6e (patch)
treebce0a278b41865c20ec20d959212152d4570c068
parentRDMA: Cleanup undesired pd->uobject usage (diff)
downloadlinux-dev-c9e585ebdc28a334b8100e560c9aaad6d4525a6e.tar.xz
linux-dev-c9e585ebdc28a334b8100e560c9aaad6d4525a6e.zip
IB/mlx5: Fix compile issue when ODP disabled
When CONFIG_INFINIBAND_ON_DEMAND_PAGING is not enabled, we were getting build failures for defined but not used code. Fix that. Fixes: 813e90b1aeaa ("IB/mlx5: Add advise_mr() support") Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--drivers/infiniband/hw/mlx5/mlx5_ib.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h
index f245b5d8a3bc..9b4e2554889a 100644
--- a/drivers/infiniband/hw/mlx5/mlx5_ib.h
+++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h
@@ -1208,10 +1208,10 @@ static inline void mlx5_odp_populate_klm(struct mlx5_klm *pklm, size_t offset,
size_t nentries, struct mlx5_ib_mr *mr,
int flags) {}
-static int mlx5_ib_advise_mr_prefetch(struct ib_pd *pd,
- enum ib_uverbs_advise_mr_advice advice,
- u32 flags, struct ib_sge *sg_list,
- u32 num_sge)
+static inline int
+mlx5_ib_advise_mr_prefetch(struct ib_pd *pd,
+ enum ib_uverbs_advise_mr_advice advice, u32 flags,
+ struct ib_sge *sg_list, u32 num_sge)
{
return -EOPNOTSUPP;
}