mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 18:56:38 +00:00
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:
parent
c83d83206a
commit
8e1f58caf7
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue