Skip to content

Commit

Permalink
IB/mlx5: Remove dead code
Browse files Browse the repository at this point in the history
When CONFIG_INFINIBAND_ON_DEMAND_PAGING is not set there is no caller to
ib_alloc_odp_umem() so let's remove it.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
  • Loading branch information
Moni Shoua authored and Jason Gunthorpe committed Jan 24, 2019
1 parent da6a496 commit 61b2fe3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/rdma/ib_umem_odp.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,6 @@ static inline int ib_umem_odp_get(struct ib_umem_odp *umem_odp, int access)
return -EINVAL;
}

static inline struct ib_umem_odp *
ib_alloc_odp_umem(struct ib_ucontext *context, unsigned long addr, size_t size)
{
return ERR_PTR(-EINVAL);
}

static inline void ib_umem_odp_release(struct ib_umem_odp *umem_odp) {}

#endif /* CONFIG_INFINIBAND_ON_DEMAND_PAGING */
Expand Down

0 comments on commit 61b2fe3

Please sign in to comment.