@@ -117,14 +117,14 @@ static int mca_rcache_rgpusm_open_mem_handle(void *base, size_t size, mca_rcache
117117 if (OPAL_UNLIKELY (OPAL_SUCCESS != result )) {
118118 opal_output_verbose (10 , mca_rcache_rgpusm_component .output ,
119119 "open_ipc_handle failed: base=%p (remote base=%p,size=%d)" ,
120- newreg -> alloc_base , base , (int ) size );
120+ ( void * ) newreg -> alloc_base , base , (int ) size );
121121 /* Currently, this is a non-recoverable error */
122122 return OPAL_ERROR ;
123123 }
124124
125125 opal_output_verbose (10 , mca_rcache_rgpusm_component .output ,
126126 "open_ipc_handle passed: base=%p (remote base=%p,size=%d)" ,
127- newreg -> alloc_base , base , (int ) size );
127+ ( void * ) newreg -> alloc_base , base , (int ) size );
128128
129129 return OPAL_SUCCESS ;
130130}
@@ -172,7 +172,7 @@ static inline bool mca_rcache_rgpusm_deregister_lru(mca_rcache_base_module_t *rc
172172 if (OPAL_SUCCESS != rc ) {
173173 opal_output_verbose (10 , mca_rcache_rgpusm_component .output ,
174174 "RGPUSM: Failed to deregister the memory addr=%p, size=%d" ,
175- old_reg -> base , (int ) (old_reg -> bound - old_reg -> base + 1 ));
175+ ( void * ) old_reg -> base , (int ) (old_reg -> bound - old_reg -> base + 1 ));
176176 return false;
177177 }
178178
@@ -292,7 +292,7 @@ int mca_rcache_rgpusm_register(mca_rcache_base_module_t *rcache, void *addr, siz
292292 rcache_rgpusm -> stat_cache_hit ++ ;
293293 opal_output_verbose (10 , mca_rcache_rgpusm_component .output ,
294294 "RGPUSM: Found addr=%p,size=%d (base=%p,size=%d) in cache" , addr ,
295- (int ) size , (* reg )-> base , (int ) ((* reg )-> bound - (* reg )-> base ));
295+ (int ) size , (void * )( * reg )-> base , (int ) ((* reg )-> bound - (* reg )-> base ));
296296
297297 if (0 ==
298298 memcmp (((mca_opal_gpu_reg_t * )* reg )-> data .ipcHandle .handle , rget_reg -> data .ipcHandle .handle ,
@@ -304,7 +304,7 @@ int mca_rcache_rgpusm_register(mca_rcache_base_module_t *rcache, void *addr, siz
304304 opal_output_verbose (10 , mca_rcache_rgpusm_component .output ,
305305 "RGPUSM: Mismatched Handle: Evicting/unregistering "
306306 "addr=%p,size=%d (base=%p,size=%d) from cache" ,
307- addr , (int ) size , (* reg )-> base ,
307+ addr , (int ) size , (void * )( * reg )-> base ,
308308 (int ) ((* reg )-> bound - (* reg )-> base ));
309309
310310 /* The ref_count has to be zero as this memory cannot possibly
@@ -508,10 +508,6 @@ int mca_rcache_rgpusm_find(struct mca_rcache_base_module_t *rcache, void *addr,
508508{
509509 mca_rcache_rgpusm_module_t * rcache_rgpusm = (mca_rcache_rgpusm_module_t * ) rcache ;
510510 int rc ;
511- unsigned char * base , * bound ;
512-
513- base = addr ;
514- bound = base + size - 1 ; /* To keep cache hits working correctly */
515511
516512 OPAL_THREAD_LOCK (& rcache -> lock );
517513 opal_output (-1 , "Looking for addr=%p, size=%d" , addr , (int ) size );
@@ -555,7 +551,7 @@ int mca_rcache_rgpusm_deregister(struct mca_rcache_base_module_t *rcache,
555551 opal_output_verbose (20 , mca_rcache_rgpusm_component .output ,
556552 "RGPUSM: Deregister: addr=%p, size=%d: cacheable and pinned, leave in "
557553 "cache, PUSH IN LRU" ,
558- reg -> base , (int ) (reg -> bound - reg -> base + 1 ));
554+ ( void * ) reg -> base , (int ) (reg -> bound - reg -> base + 1 ));
559555 opal_list_prepend (& rcache_rgpusm -> lru_list , (opal_list_item_t * ) reg );
560556 } else {
561557 /* Remove from rcache first */
0 commit comments