提交 8653ffc3 编写于 作者: K Kamal Heib 提交者: Greg Kroah-Hartman

RDMA/rdmavt: Fix rvt_create_ah function signature

[ Upstream commit 4f32fb921b153ae9ea280e02a3e91509fffc03d3 ]

rdmavt uses a crazy system that looses the type checking when assinging
functions to struct ib_device function pointers. Because of this the
signature to this function was not changed when the below commit revised
things.

Fix the signature so we are not calling a function pointer with a
mismatched signature.

Fixes: 477864c8 ("IB/core: Let create_ah return extended response to user")
Signed-off-by: NKamal Heib <kamalheib1@gmail.com>
Reviewed-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
上级 59315d0c
...@@ -91,13 +91,15 @@ EXPORT_SYMBOL(rvt_check_ah); ...@@ -91,13 +91,15 @@ EXPORT_SYMBOL(rvt_check_ah);
* rvt_create_ah - create an address handle * rvt_create_ah - create an address handle
* @pd: the protection domain * @pd: the protection domain
* @ah_attr: the attributes of the AH * @ah_attr: the attributes of the AH
* @udata: pointer to user's input output buffer information.
* *
* This may be called from interrupt context. * This may be called from interrupt context.
* *
* Return: newly allocated ah * Return: newly allocated ah
*/ */
struct ib_ah *rvt_create_ah(struct ib_pd *pd, struct ib_ah *rvt_create_ah(struct ib_pd *pd,
struct rdma_ah_attr *ah_attr) struct rdma_ah_attr *ah_attr,
struct ib_udata *udata)
{ {
struct rvt_ah *ah; struct rvt_ah *ah;
struct rvt_dev_info *dev = ib_to_rvt(pd->device); struct rvt_dev_info *dev = ib_to_rvt(pd->device);
......
...@@ -51,7 +51,8 @@ ...@@ -51,7 +51,8 @@
#include <rdma/rdma_vt.h> #include <rdma/rdma_vt.h>
struct ib_ah *rvt_create_ah(struct ib_pd *pd, struct ib_ah *rvt_create_ah(struct ib_pd *pd,
struct rdma_ah_attr *ah_attr); struct rdma_ah_attr *ah_attr,
struct ib_udata *udata);
int rvt_destroy_ah(struct ib_ah *ibah); int rvt_destroy_ah(struct ib_ah *ibah);
int rvt_modify_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr); int rvt_modify_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr);
int rvt_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr); int rvt_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册