IB: Pass only ib_udata in function prototypes

Now when ib_udata is passed to all the driver's object create/destroy APIs
the ib_udata will carry the ib_ucontext for every user command. There is
no need to also pass the ib_ucontext via the functions prototypes.

Make ib_udata the only argument psssed.

Signed-off-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
此提交包含在:
Shamir Rabinovitch
2019-03-31 19:10:07 +03:00
提交者 Jason Gunthorpe
父節點 bdeacabd1a
當前提交 ff23dfa134
共有 53 個檔案被更改,包括 271 行新增328 行删除

查看文件

@@ -131,8 +131,7 @@ struct ib_srq *mlx4_ib_create_srq(struct ib_pd *pd,
if (err)
goto err_mtt;
err = mlx4_ib_db_map_user(ucontext, udata, ucmd.db_addr,
&srq->db);
err = mlx4_ib_db_map_user(udata, ucmd.db_addr, &srq->db);
if (err)
goto err_mtt;
} else {