@@ -117,14 +117,14 @@ static int mca_rcache_rgpusm_open_mem_handle(void *base, size_t size, mca_rcache
117
117
if (OPAL_UNLIKELY (OPAL_SUCCESS != result )) {
118
118
opal_output_verbose (10 , mca_rcache_rgpusm_component .output ,
119
119
"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 );
121
121
/* Currently, this is a non-recoverable error */
122
122
return OPAL_ERROR ;
123
123
}
124
124
125
125
opal_output_verbose (10 , mca_rcache_rgpusm_component .output ,
126
126
"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 );
128
128
129
129
return OPAL_SUCCESS ;
130
130
}
@@ -172,7 +172,7 @@ static inline bool mca_rcache_rgpusm_deregister_lru(mca_rcache_base_module_t *rc
172
172
if (OPAL_SUCCESS != rc ) {
173
173
opal_output_verbose (10 , mca_rcache_rgpusm_component .output ,
174
174
"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 ));
176
176
return false;
177
177
}
178
178
@@ -291,7 +291,7 @@ int mca_rcache_rgpusm_register(mca_rcache_base_module_t *rcache, void *addr, siz
291
291
rcache_rgpusm -> stat_cache_hit ++ ;
292
292
opal_output_verbose (10 , mca_rcache_rgpusm_component .output ,
293
293
"RGPUSM: Found addr=%p,size=%d (base=%p,size=%d) in cache" , addr ,
294
- (int ) size , (* reg )-> base , (int ) ((* reg )-> bound - (* reg )-> base ));
294
+ (int ) size , (void * )( * reg )-> base , (int ) ((* reg )-> bound - (* reg )-> base ));
295
295
296
296
if (0 ==
297
297
memcmp (((mca_opal_gpu_reg_t * )* reg )-> data .ipcHandle .handle , rget_reg -> data .ipcHandle .handle ,
@@ -303,7 +303,7 @@ int mca_rcache_rgpusm_register(mca_rcache_base_module_t *rcache, void *addr, siz
303
303
opal_output_verbose (10 , mca_rcache_rgpusm_component .output ,
304
304
"RGPUSM: Mismatched Handle: Evicting/unregistering "
305
305
"addr=%p,size=%d (base=%p,size=%d) from cache" ,
306
- addr , (int ) size , (* reg )-> base ,
306
+ addr , (int ) size , (void * )( * reg )-> base ,
307
307
(int ) ((* reg )-> bound - (* reg )-> base ));
308
308
309
309
/* The ref_count has to be zero as this memory cannot possibly
@@ -507,10 +507,6 @@ int mca_rcache_rgpusm_find(struct mca_rcache_base_module_t *rcache, void *addr,
507
507
{
508
508
mca_rcache_rgpusm_module_t * rcache_rgpusm = (mca_rcache_rgpusm_module_t * ) rcache ;
509
509
int rc ;
510
- unsigned char * base , * bound ;
511
-
512
- base = addr ;
513
- bound = base + size - 1 ; /* To keep cache hits working correctly */
514
510
515
511
OPAL_THREAD_LOCK (& rcache -> lock );
516
512
opal_output (-1 , "Looking for addr=%p, size=%d" , addr , (int ) size );
@@ -554,7 +550,7 @@ int mca_rcache_rgpusm_deregister(struct mca_rcache_base_module_t *rcache,
554
550
opal_output_verbose (20 , mca_rcache_rgpusm_component .output ,
555
551
"RGPUSM: Deregister: addr=%p, size=%d: cacheable and pinned, leave in "
556
552
"cache, PUSH IN LRU" ,
557
- reg -> base , (int ) (reg -> bound - reg -> base + 1 ));
553
+ ( void * ) reg -> base , (int ) (reg -> bound - reg -> base + 1 ));
558
554
opal_list_prepend (& rcache_rgpusm -> lru_list , (opal_list_item_t * ) reg );
559
555
} else {
560
556
/* Remove from rcache first */
0 commit comments