@@ -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
@@ -292,7 +292,7 @@ int mca_rcache_rgpusm_register(mca_rcache_base_module_t *rcache, void *addr, siz
292
292
rcache_rgpusm -> stat_cache_hit ++ ;
293
293
opal_output_verbose (10 , mca_rcache_rgpusm_component .output ,
294
294
"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 ));
296
296
297
297
if (0 ==
298
298
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
304
304
opal_output_verbose (10 , mca_rcache_rgpusm_component .output ,
305
305
"RGPUSM: Mismatched Handle: Evicting/unregistering "
306
306
"addr=%p,size=%d (base=%p,size=%d) from cache" ,
307
- addr , (int ) size , (* reg )-> base ,
307
+ addr , (int ) size , (void * )( * reg )-> base ,
308
308
(int ) ((* reg )-> bound - (* reg )-> base ));
309
309
310
310
/* 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,
508
508
{
509
509
mca_rcache_rgpusm_module_t * rcache_rgpusm = (mca_rcache_rgpusm_module_t * ) rcache ;
510
510
int rc ;
511
- unsigned char * base , * bound ;
512
-
513
- base = addr ;
514
- bound = base + size - 1 ; /* To keep cache hits working correctly */
515
511
516
512
OPAL_THREAD_LOCK (& rcache -> lock );
517
513
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,
555
551
opal_output_verbose (20 , mca_rcache_rgpusm_component .output ,
556
552
"RGPUSM: Deregister: addr=%p, size=%d: cacheable and pinned, leave in "
557
553
"cache, PUSH IN LRU" ,
558
- reg -> base , (int ) (reg -> bound - reg -> base + 1 ));
554
+ ( void * ) reg -> base , (int ) (reg -> bound - reg -> base + 1 ));
559
555
opal_list_prepend (& rcache_rgpusm -> lru_list , (opal_list_item_t * ) reg );
560
556
} else {
561
557
/* Remove from rcache first */
0 commit comments