1
1

- ompi/mca/mpool/rdma/mpool_rdma_module.c: At this level

without mpi.h we have no notion of MPI_SUCCESS...
 - ompi/mca/btl/sm/btl_sm.h: ptrdiff_t needs stddef.h 
 - ompi/mca/mpool/base/: If we use opal_pointer_array_t,
   better include the class header.

This commit was SVN r20816.
This commit is contained in:
Rainer Keller 2009-03-17 20:21:36 +00:00
parent f5e6e001d7
commit b9b84a9c29
4 changed files with 6 additions and 2 deletions

View File

@ -24,6 +24,7 @@
#define MCA_BTL_SM_H
#include "ompi_config.h"
#include <stddef.h>
#include <stdlib.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>

View File

@ -23,6 +23,7 @@
#include <stdio.h>
#include "ompi/constants.h"
#include "opal/class/opal_pointer_array.h"
#include "opal/mca/mca.h"
#include "opal/mca/base/base.h"
#include "ompi/mca/mpool/mpool.h"

View File

@ -20,6 +20,8 @@
* @file
*/
#include "ompi_config.h"
#include "opal/class/opal_pointer_array.h"
#include "mpool_base_mem_cb.h"
#include "base.h"
#include "orte/types.h"

View File

@ -213,7 +213,7 @@ int mca_mpool_rdma_register(mca_mpool_base_module_t *mpool, void *addr,
mpool_rdma->stat_cache_hit++;
(*reg)->ref_count++;
OPAL_THREAD_UNLOCK(&mpool->rcache->lock);
return MPI_SUCCESS;
return OMPI_SUCCESS;
}
mpool_rdma->stat_cache_miss++;
@ -255,7 +255,7 @@ int mca_mpool_rdma_register(mca_mpool_base_module_t *mpool, void *addr,
if(opal_list_get_end(&mpool_rdma->mru_list) !=
(opal_list_item_t*)old_reg) {
rc = dereg_mem(mpool, old_reg);
if(MPI_SUCCESS == rc) {
if(OMPI_SUCCESS == rc) {
mpool->rcache->rcache_delete(mpool->rcache, old_reg);
opal_list_remove_item(&mpool_rdma->mru_list,
(opal_list_item_t*)old_reg);