Cleanup warnings for use of void* - requires intermediate cast to uintptr_t. Thanks to Paul Hargrove for reporting it
cmr=v1.7.4:reviewer=jsquyres This commit was SVN r30333.
Этот коммит содержится в:
родитель
3e9c8497e0
Коммит
2cf4862b49
@ -271,7 +271,7 @@ static int check_if_device_support_modify_srq(mca_btl_openib_module_t *openib_bt
|
||||
return rc;
|
||||
}
|
||||
|
||||
sge_elem.addr = (uint64_t) &buff;
|
||||
sge_elem.addr = (uint64_t)((uintptr_t) &buff);
|
||||
sge_elem.length = sizeof(buff);
|
||||
|
||||
wr1.num_sge = wr2.num_sge = 1;
|
||||
|
@ -367,8 +367,8 @@ static inline int post_recvs(mca_btl_base_endpoint_t *ep, const int qp,
|
||||
wr = wr->next = &to_recv_frag(item)->rd_desc;
|
||||
OPAL_OUTPUT((-1, "Posting recv (QP num %d): WR ID %p, SG addr %p, len %d, lkey %d",
|
||||
ep->qps[qp].qp->lcl_qp->qp_num,
|
||||
(void*) wr->wr_id,
|
||||
(void*) wr->sg_list[0].addr,
|
||||
(void*) ((uintptr_t*)wr->wr_id),
|
||||
(void*)((uintptr_t*) wr->sg_list[0].addr),
|
||||
wr->sg_list[0].length,
|
||||
wr->sg_list[0].lkey));
|
||||
}
|
||||
|
@ -908,13 +908,13 @@ static int handle_connect_request(struct rdma_cm_event *event)
|
||||
goto out1;
|
||||
}
|
||||
OPAL_OUTPUT((-1, "Posted CTS receiver buffer (%p) for peer %s, qp index %d (QP num %d), WR ID %p, SG addr %p, len %d, lkey %d",
|
||||
(void*) wr->sg_list[0].addr,
|
||||
(void*)((uintptr_t*) wr->sg_list[0].addr),
|
||||
(NULL == endpoint->endpoint_proc->proc_ompi->proc_hostname) ?
|
||||
"unknown" : endpoint->endpoint_proc->proc_ompi->proc_hostname,
|
||||
qpnum,
|
||||
endpoint->qps[qpnum].qp->lcl_qp->qp_num,
|
||||
(void*) wr->wr_id,
|
||||
(void*) wr->sg_list[0].addr,
|
||||
(void*)((uintptr_t*) wr->wr_id),
|
||||
(void*)((uintptr_t*) wr->sg_list[0].addr),
|
||||
wr->sg_list[0].length,
|
||||
wr->sg_list[0].lkey));
|
||||
}
|
||||
@ -1385,7 +1385,7 @@ static int finish_connect(id_context_t *context)
|
||||
goto out1;
|
||||
}
|
||||
OPAL_OUTPUT((-1, "Posted initiator CTS buffer (%p, length %d) for peer %s, qp index %d (QP num %d)",
|
||||
(void*) wr->sg_list[0].addr,
|
||||
(void*)((uintptr_t*) wr->sg_list[0].addr),
|
||||
wr->sg_list[0].length,
|
||||
(NULL == contents->endpoint->endpoint_proc->proc_ompi->proc_hostname) ?
|
||||
"unknown" : contents->endpoint->endpoint_proc->proc_ompi->proc_hostname,
|
||||
|
@ -1452,7 +1452,7 @@ static int udcm_post_send (mca_btl_base_endpoint_t *lcl_ep, void *data,
|
||||
sge.length = length;
|
||||
sge.lkey = m->cm_mr->lkey;
|
||||
|
||||
memcpy ((void *)sge.addr, data, length);
|
||||
memcpy ((uintptr_t *)sge.addr, data, length);
|
||||
} else {
|
||||
sge.addr = (uintptr_t) data;
|
||||
sge.length = length;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user