mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
RDMA/mlx5: Drop access_flags from _mlx5_mr_cache_alloc()
Drop the unused access_flags parameter. Signed-off-by: Michael Guralnik <michaelgur@nvidia.com> Reviewed-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/4d769c51eb012c62b3a92fd916b7886c25b56fbf.1741875692.git.leon@kernel.org Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
24d693cf6c
commit
9a68356c30
|
|
@ -718,8 +718,7 @@ mkey_cache_ent_from_rb_key(struct mlx5_ib_dev *dev,
|
|||
}
|
||||
|
||||
static struct mlx5_ib_mr *_mlx5_mr_cache_alloc(struct mlx5_ib_dev *dev,
|
||||
struct mlx5_cache_ent *ent,
|
||||
int access_flags)
|
||||
struct mlx5_cache_ent *ent)
|
||||
{
|
||||
struct mlx5_ib_mr *mr;
|
||||
int err;
|
||||
|
|
@ -794,7 +793,7 @@ struct mlx5_ib_mr *mlx5_mr_cache_alloc(struct mlx5_ib_dev *dev,
|
|||
if (!ent)
|
||||
return ERR_PTR(-EOPNOTSUPP);
|
||||
|
||||
return _mlx5_mr_cache_alloc(dev, ent, access_flags);
|
||||
return _mlx5_mr_cache_alloc(dev, ent);
|
||||
}
|
||||
|
||||
static void mlx5_mkey_cache_debugfs_cleanup(struct mlx5_ib_dev *dev)
|
||||
|
|
@ -1155,7 +1154,7 @@ static struct mlx5_ib_mr *alloc_cacheable_mr(struct ib_pd *pd,
|
|||
return mr;
|
||||
}
|
||||
|
||||
mr = _mlx5_mr_cache_alloc(dev, ent, access_flags);
|
||||
mr = _mlx5_mr_cache_alloc(dev, ent);
|
||||
if (IS_ERR(mr))
|
||||
return mr;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user