Commit c9e585eb authored by Doug Ledford's avatar Doug Ledford

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: 813e90b1 ("IB/mlx5: Add advise_mr() support")
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent e00b64f7
...@@ -1208,10 +1208,10 @@ static inline void mlx5_odp_populate_klm(struct mlx5_klm *pklm, size_t offset, ...@@ -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, size_t nentries, struct mlx5_ib_mr *mr,
int flags) {} int flags) {}
static int mlx5_ib_advise_mr_prefetch(struct ib_pd *pd, static inline int
enum ib_uverbs_advise_mr_advice advice, mlx5_ib_advise_mr_prefetch(struct ib_pd *pd,
u32 flags, struct ib_sge *sg_list, enum ib_uverbs_advise_mr_advice advice, u32 flags,
u32 num_sge) struct ib_sge *sg_list, u32 num_sge)
{ {
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment