[PATCH rdma-core] verbs: Fix mis-spelling of ibv_create_qp_ex_to_reg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Got typo'd to '_cq_' not '_qp_'

Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx>
---
 libibverbs/cmd.c       | 2 +-
 libibverbs/kern-abi.h  | 2 +-
 providers/mlx4/verbs.c | 2 +-
 providers/mlx5/verbs.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

Yishai noticed this mistake after the patches were merged

diff --git a/libibverbs/cmd.c b/libibverbs/cmd.c
index 36d62eb09ad107..e2e650b8a06313 100644
--- a/libibverbs/cmd.c
+++ b/libibverbs/cmd.c
@@ -897,7 +897,7 @@ int ibv_cmd_create_qp_ex2(struct ibv_context *context,
 			       resp_core_size, resp_size);
 
 	err = create_qp_ex_common(qp, qp_attr, vxrcd,
-				  ibv_create_cq_ex_to_reg(cmd));
+				  ibv_create_qp_ex_to_reg(cmd));
 	if (err)
 		return err;
 
diff --git a/libibverbs/kern-abi.h b/libibverbs/kern-abi.h
index 157f64f649af09..da2c0e16f09b6e 100644
--- a/libibverbs/kern-abi.h
+++ b/libibverbs/kern-abi.h
@@ -218,7 +218,7 @@ DECLARE_CMD_EX(IB_USER_VERBS_EX_CMD_QUERY_DEVICE, ibv_query_device_ex, ib_uverbs
  * structure, this function converts the ex version into the normal version
  */
 static inline struct ib_uverbs_create_qp *
-ibv_create_cq_ex_to_reg(struct ibv_create_qp_ex *cmd_ex)
+ibv_create_qp_ex_to_reg(struct ibv_create_qp_ex *cmd_ex)
 {
 	/*
 	 * user_handle is the start in both places, note that the ex
diff --git a/providers/mlx4/verbs.c b/providers/mlx4/verbs.c
index 52ec553aed283e..47353a331f28cf 100644
--- a/providers/mlx4/verbs.c
+++ b/providers/mlx4/verbs.c
@@ -831,7 +831,7 @@ static int mlx4_cmd_create_qp_ex(struct ibv_context *context,
 	int ret;
 
 	memset(&cmd_ex, 0, sizeof(cmd_ex));
-	*ibv_create_cq_ex_to_reg(&cmd_ex.ibv_cmd) = cmd->ibv_cmd.core_payload;
+	*ibv_create_qp_ex_to_reg(&cmd_ex.ibv_cmd) = cmd->ibv_cmd.core_payload;
 
 	cmd_ex.drv_payload = cmd->drv_payload;
 
diff --git a/providers/mlx5/verbs.c b/providers/mlx5/verbs.c
index 7c51fdc47b4008..0547f1315b39bf 100644
--- a/providers/mlx5/verbs.c
+++ b/providers/mlx5/verbs.c
@@ -1466,7 +1466,7 @@ static int mlx5_cmd_create_qp_ex(struct ibv_context *context,
 	int ret;
 
 	memset(&cmd_ex, 0, sizeof(cmd_ex));
-	*ibv_create_cq_ex_to_reg(&cmd_ex.ibv_cmd) = cmd->ibv_cmd.core_payload;
+	*ibv_create_qp_ex_to_reg(&cmd_ex.ibv_cmd) = cmd->ibv_cmd.core_payload;
 
 	cmd_ex.drv_payload = cmd->drv_payload;
 
-- 
2.16.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux