ofed: fix warnings during libibverbs compilation

create_qp_handle_resp_common_cleanup should be void
__ibv_cleanup_wq should use wq->cond for cond destroy
both issues were overlooked in:
a687910 ('Cleanup pthread locks in ofed RDMA verbs')

Signed-off-by: Bartosz Sobczak <bartosz.sobczak@intel.com>
Signed-off-by: Eric Joyner <erj@FreeBSD.org>

Reviewed by:	sean.lim@dell.com, vangyzen@, erj@
MFC after:	1 day
Sponsored by: Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D43491
This commit is contained in:
Bartosz Sobczak 2024-02-05 18:43:48 -08:00 committed by Eric Joyner
parent c83d83206a
commit 8e1f58caf7
No known key found for this signature in database
GPG key ID: 96F0C6FD61E05DE3
2 changed files with 2 additions and 2 deletions

View file

@ -904,7 +904,7 @@ static int create_qp_ex_common(struct verbs_qp *qp,
return 0;
}
static int create_qp_handle_resp_common_cleanup(struct verbs_qp *qp)
static void create_qp_handle_resp_common_cleanup(struct verbs_qp *qp)
{
pthread_cond_destroy(&qp->qp.cond);
pthread_mutex_destroy(&qp->qp.mutex);

View file

@ -456,7 +456,7 @@ default_symver(__ibv_init_wq, ibv_init_wq);
void __ibv_cleanup_wq(struct ibv_wq *wq)
{
pthread_cond_destroy(&wq->mutex);
pthread_cond_destroy(&wq->cond);
pthread_mutex_destroy(&wq->mutex);
}
default_symver(__ibv_cleanup_wq, ibv_cleanup_wq);