Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

RDMA/mlx5: Remove two unused declarations

Commit e6fb246ccafb ("RDMA/mlx5: Consolidate MR destruction to
mlx5_ib_dereg_mr()") removed mlx5_ib_free_implicit_mr() but left
the declaration.

Commit d98995b4bf98 ("net/mlx5: Reimplement write combining test") left
mlx5_ib_test_wc().

Remove the unused declarations.

Link: https://patch.msgid.link/r/20240816101358.881247-1-yuehaibing@huawei.com
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>

authored by

Yue Haibing and committed by
Jason Gunthorpe
53ffc09a ec7ad653

-3
-3
drivers/infiniband/hw/mlx5/mlx5_ib.h
··· 1372 1372 int mlx5_ib_dealloc_mw(struct ib_mw *mw); 1373 1373 struct mlx5_ib_mr *mlx5_ib_alloc_implicit_mr(struct mlx5_ib_pd *pd, 1374 1374 int access_flags); 1375 - void mlx5_ib_free_implicit_mr(struct mlx5_ib_mr *mr); 1376 1375 void mlx5_ib_free_odp_mr(struct mlx5_ib_mr *mr); 1377 1376 struct ib_mr *mlx5_ib_rereg_user_mr(struct ib_mr *ib_mr, int flags, u64 start, 1378 1377 u64 length, u64 virt_addr, int access_flags, ··· 1651 1652 mlx5r_deref_odp_mkey(mmkey); 1652 1653 wait_event(mmkey->wait, refcount_read(&mmkey->usecount) == 0); 1653 1654 } 1654 - 1655 - int mlx5_ib_test_wc(struct mlx5_ib_dev *dev); 1656 1655 1657 1656 static inline bool mlx5_ib_lag_should_assign_affinity(struct mlx5_ib_dev *dev) 1658 1657 {