]> www.infradead.org Git - nvme.git/commitdiff
RDMA/rxe: Remove unused parameter udata
authorLang Cheng <chenglang@huawei.com>
Wed, 12 May 2021 08:12:22 +0000 (16:12 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 20 May 2021 14:52:17 +0000 (11:52 -0300)
The old version of ib_umem_get() need these udata as a parameter but now
they are unnecessary.

Fixes: c320e527e154 ("IB: Allow calls to ib_umem_get from kernel ULPs")
Link: https://lore.kernel.org/r/1620807142-39157-5-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Reviewed-by: Zhu Yanjun <zyjzyj2000@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_loc.h
drivers/infiniband/sw/rxe/rxe_mr.c
drivers/infiniband/sw/rxe/rxe_verbs.c

index ef8061d2fbe0f424e7a9c10e52f94b31bd27241e..b21038cb370f6ee4d018718ac7118ce749e5481c 100644 (file)
@@ -79,7 +79,7 @@ enum copy_direction {
 void rxe_mr_init_dma(struct rxe_pd *pd, int access, struct rxe_mr *mr);
 
 int rxe_mr_init_user(struct rxe_pd *pd, u64 start, u64 length, u64 iova,
-                    int access, struct ib_udata *udata, struct rxe_mr *mr);
+                    int access, struct rxe_mr *mr);
 
 int rxe_mr_init_fast(struct rxe_pd *pd, int max_pages, struct rxe_mr *mr);
 
index 9f63947bab1237fd23269b61f6349f0d6f5e960c..373b46aab04377df5916b7b285016a62cbd9ecbe 100644 (file)
@@ -121,7 +121,7 @@ void rxe_mr_init_dma(struct rxe_pd *pd, int access, struct rxe_mr *mr)
 }
 
 int rxe_mr_init_user(struct rxe_pd *pd, u64 start, u64 length, u64 iova,
-                    int access, struct ib_udata *udata, struct rxe_mr *mr)
+                    int access, struct rxe_mr *mr)
 {
        struct rxe_map          **map;
        struct rxe_phys_buf     *buf = NULL;
index aeb5e232c19575919fabdcc96a6fa5cc2087c254..86a0965a88f62c7ea7b0e5218161e6ca0a5351d1 100644 (file)
@@ -899,7 +899,7 @@ static struct ib_mr *rxe_reg_user_mr(struct ib_pd *ibpd,
 
        rxe_add_ref(pd);
 
-       err = rxe_mr_init_user(pd, start, length, iova, access, udata, mr);
+       err = rxe_mr_init_user(pd, start, length, iova, access, mr);
        if (err)
                goto err3;