Use complete types
This commit was SVN r24434.
Этот коммит содержится в:
родитель
90eeba252e
Коммит
b468c71b47
@ -527,7 +527,7 @@ static int openib_reg_mr(void *reg_data, void *base, size_t size,
|
||||
{
|
||||
mca_btl_openib_device_t *device = (mca_btl_openib_device_t*)reg_data;
|
||||
mca_btl_openib_reg_t *openib_reg = (mca_btl_openib_reg_t*)reg;
|
||||
enum ibv_access_flags access_flag = (ibv_access_flags) (IBV_ACCESS_LOCAL_WRITE |
|
||||
enum ibv_access_flags access_flag = (enum ibv_access_flags) (IBV_ACCESS_LOCAL_WRITE |
|
||||
IBV_ACCESS_REMOTE_WRITE | IBV_ACCESS_REMOTE_READ);
|
||||
|
||||
#if HAVE_DECL_IBV_ACCESS_SO
|
||||
|
@ -1366,12 +1366,12 @@ static int get_pathrecord_sl(struct ibv_context *context_arg,
|
||||
/* if the destination lid SL value is not in the cache, go get it */
|
||||
if (SL_NOT_PRESENT == cache->sl_values[rem_lid]) {
|
||||
/* sag is first buffer, where we build the SA Get request to send */
|
||||
sag = (ib_mad_sa *)(cache->send_recv_buffer);
|
||||
sag = (struct ib_mad_sa *)(cache->send_recv_buffer);
|
||||
|
||||
init_sa_mad(cache, sag, &swr, &ssge, lid, rem_lid);
|
||||
|
||||
/* sar is the receive buffer (40 byte GRH) */
|
||||
sar = (ib_mad_sa *)(cache->send_recv_buffer + sizeof(struct ib_mad_sa) + 40);
|
||||
sar = (struct ib_mad_sa *)(cache->send_recv_buffer + sizeof(struct ib_mad_sa) + 40);
|
||||
|
||||
rc = get_pathrecord_info(cache, sag, sar, &swr, lid, rem_lid);
|
||||
if (0 != rc) {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user