aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/verbs.c
diff options
context:
space:
mode:
authorGal Pressman <galpress@amazon.com>2020-07-06 15:03:43 +0300
committerJason Gunthorpe <jgg@nvidia.com>2020-07-06 19:25:53 -0300
commit42a3b153966c9cd9a90f6a669d1ffed7fef2d325 (patch)
tree21c32f018585738cce91bc7f9750aa4ba973faec /drivers/infiniband/core/verbs.c
parentRDMA/core: Remove ib_alloc_mr_user function (diff)
downloadlinux-dev-42a3b153966c9cd9a90f6a669d1ffed7fef2d325.tar.xz
linux-dev-42a3b153966c9cd9a90f6a669d1ffed7fef2d325.zip
RDMA: Remove the udata parameter from alloc_mr callback
Allocating an MR flow can only be initiated by kernel users, and not from userspace so a udata parameter is redundant. Link: https://lore.kernel.org/r/20200706120343.10816-4-galpress@amazon.com Signed-off-by: Gal Pressman <galpress@amazon.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/core/verbs.c')
-rw-r--r--drivers/infiniband/core/verbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c
index e98d3ada0951..f10dc00074a7 100644
--- a/drivers/infiniband/core/verbs.c
+++ b/drivers/infiniband/core/verbs.c
@@ -2131,7 +2131,7 @@ struct ib_mr *ib_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type,
goto out;
}
- mr = pd->device->ops.alloc_mr(pd, mr_type, max_num_sg, NULL);
+ mr = pd->device->ops.alloc_mr(pd, mr_type, max_num_sg);
if (IS_ERR(mr))
goto out;