@@ -82,7 +82,7 @@ static int ompi_osc_pt2pt_dt_send_complete (ompi_request_t *request)
8282}
8383
8484/* self communication optimizations */
85- static inline int ompi_osc_pt2pt_put_self (void * source , int source_count , ompi_datatype_t * source_datatype ,
85+ static inline int ompi_osc_pt2pt_put_self (const void * source , int source_count , ompi_datatype_t * source_datatype ,
8686 OPAL_PTRDIFF_TYPE target_disp , int target_count , ompi_datatype_t * target_datatype ,
8787 ompi_osc_pt2pt_module_t * module , ompi_osc_pt2pt_request_t * request )
8888{
@@ -103,7 +103,7 @@ static inline int ompi_osc_pt2pt_put_self (void *source, int source_count, ompi_
103103 return OMPI_ERR_RMA_SYNC ;
104104 }
105105
106- ret = ompi_datatype_sndrcv (source , source_count , source_datatype ,
106+ ret = ompi_datatype_sndrcv (( void * ) source , source_count , source_datatype ,
107107 target , target_count , target_datatype );
108108 if (OPAL_UNLIKELY (OMPI_SUCCESS != ret )) {
109109 return ret ;
@@ -286,7 +286,7 @@ static inline int ompi_osc_pt2pt_gacc_self (const void *source, int source_count
286286}
287287/* end: self communication optimizations */
288288
289- static inline int ompi_osc_pt2pt_put_w_req (void * origin_addr , int origin_count ,
289+ static inline int ompi_osc_pt2pt_put_w_req (const void * origin_addr , int origin_count ,
290290 struct ompi_datatype_t * origin_dt ,
291291 int target , OPAL_PTRDIFF_TYPE target_disp ,
292292 int target_count , struct ompi_datatype_t * target_dt ,
@@ -450,7 +450,7 @@ static inline int ompi_osc_pt2pt_put_w_req (void *origin_addr, int origin_count,
450450}
451451
452452int
453- ompi_osc_pt2pt_put (void * origin_addr , int origin_count ,
453+ ompi_osc_pt2pt_put (const void * origin_addr , int origin_count ,
454454 struct ompi_datatype_t * origin_dt ,
455455 int target , OPAL_PTRDIFF_TYPE target_disp ,
456456 int target_count ,
@@ -635,7 +635,7 @@ ompi_osc_pt2pt_accumulate_w_req (const void *origin_addr, int origin_count,
635635}
636636
637637int
638- ompi_osc_pt2pt_accumulate (void * origin_addr , int origin_count ,
638+ ompi_osc_pt2pt_accumulate (const void * origin_addr , int origin_count ,
639639 struct ompi_datatype_t * origin_dt ,
640640 int target , OPAL_PTRDIFF_TYPE target_disp ,
641641 int target_count ,
@@ -746,7 +746,7 @@ int ompi_osc_pt2pt_fetch_and_op(const void *origin_addr, void *result_addr,
746746 target , target_disp , 1 , dt , op , win );
747747}
748748
749- int ompi_osc_pt2pt_rput (void * origin_addr , int origin_count ,
749+ int ompi_osc_pt2pt_rput (const void * origin_addr , int origin_count ,
750750 struct ompi_datatype_t * origin_dt ,
751751 int target , OPAL_PTRDIFF_TYPE target_disp ,
752752 int target_count , struct ompi_datatype_t * target_dt ,
@@ -1205,7 +1205,7 @@ int ompi_osc_pt2pt_get_accumulate(const void *origin_addr, int origin_count,
12051205}
12061206
12071207
1208- int ompi_osc_pt2pt_rget_accumulate (void * origin_addr , int origin_count ,
1208+ int ompi_osc_pt2pt_rget_accumulate (const void * origin_addr , int origin_count ,
12091209 struct ompi_datatype_t * origin_dt ,
12101210 void * result_addr , int result_count ,
12111211 struct ompi_datatype_t * result_dt ,
0 commit comments