@@ -252,7 +252,8 @@ static inline ib_pkey_table_t *osm_pkey_tbl_block_get(const osm_pkey_tbl_t *
uint16_t block)
{
return ((block < cl_ptr_vector_get_size(&p_pkey_tbl->blocks)) ?
- cl_ptr_vector_get(&p_pkey_tbl->blocks, block) : NULL);
+ (ib_pkey_table_t *)cl_ptr_vector_get(
+ &p_pkey_tbl->blocks, block) : NULL);
};
/*
@@ -282,8 +283,9 @@ static inline ib_pkey_table_t *osm_pkey_tbl_new_block_get(const osm_pkey_tbl_t *
p_pkey_tbl,
uint16_t block)
{
- return (block < cl_ptr_vector_get_size(&p_pkey_tbl->new_blocks)) ?
- cl_ptr_vector_get(&p_pkey_tbl->new_blocks, block) : NULL;
+ return ((block < cl_ptr_vector_get_size(&p_pkey_tbl->new_blocks)) ?
+ (ib_pkey_table_t *)cl_ptr_vector_get(
+ &p_pkey_tbl->new_blocks, block) : NULL);
};
/****f* OpenSM: osm_pkey_tbl_set_new_entry
@@ -549,7 +549,7 @@ static inline void osm_physp_set_slvl_tbl(IN osm_physp_t * p_physp,
CL_ASSERT(p_slvl_tbl);
CL_ASSERT(osm_physp_is_valid(p_physp));
- p_tbl = cl_ptr_vector_get(&p_physp->slvl_by_port, in_port_num);
+ p_tbl = (ib_slvl_table_t *)cl_ptr_vector_get(&p_physp->slvl_by_port, in_port_num);
*p_tbl = *p_slvl_tbl;
}
@@ -590,7 +590,7 @@ static inline ib_slvl_table_t *osm_physp_get_slvl_tbl(IN const osm_physp_t *
ib_slvl_table_t *p_tbl;
CL_ASSERT(osm_physp_is_valid(p_physp));
- p_tbl = cl_ptr_vector_get(&p_physp->slvl_by_port, in_port_num);
+ p_tbl = (ib_slvl_table_t *)cl_ptr_vector_get(&p_physp->slvl_by_port, in_port_num);
return p_tbl;
}
@@ -1015,7 +1015,7 @@ struct osm_mgrp *osm_get_mgrp_by_mgid(IN osm_subn_t * subn, IN ib_gid_t * mgid);
*/
static inline struct osm_mgrp_box *osm_get_mbox_by_mlid(osm_subn_t const *p_subn, ib_net16_t mlid)
{
- return p_subn->mboxes[cl_ntoh16(mlid) - IB_LID_MCAST_START_HO];
+ return (struct osm_mgrp_box *)p_subn->mboxes[cl_ntoh16(mlid) - IB_LID_MCAST_START_HO];
}
/*
* PARAMETERS