1+ /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
12/*
23 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
34 * University Research and Technology
1213 * Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
1314 * Copyright (c) 2015 Research Organization for Information Science
1415 * and Technology (RIST). All rights reserved.
16+ * Copyright (c) 2015 Los Alamos National Security, LLC. All rights
17+ * reserved.
1518 * $COPYRIGHT$
1619 *
1720 * Additional copyrights may follow
@@ -55,10 +58,7 @@ extern char *ompi_pml_base_bsend_allocator_name;
5558/*
5659 * Routine to return pages to sub-allocator as needed
5760 */
58- static void * mca_pml_bsend_alloc_segment (
59- struct mca_mpool_base_module_t * module ,
60- size_t * size_inout ,
61- mca_mpool_base_registration_t * * registration )
61+ static void * mca_pml_bsend_alloc_segment (void * ctx , size_t * size_inout )
6262{
6363 void * addr ;
6464 size_t size = * size_inout ;
@@ -70,7 +70,6 @@ static void* mca_pml_bsend_alloc_segment(
7070 addr = mca_pml_bsend_addr ;
7171 mca_pml_bsend_addr += size ;
7272 * size_inout = size ;
73- if (NULL != registration ) * registration = NULL ;
7473 return addr ;
7574}
7675
@@ -232,7 +231,7 @@ int mca_pml_base_bsend_request_start(ompi_request_t* request)
232231
233232 /* allocate a buffer to hold packed message */
234233 sendreq -> req_addr = mca_pml_bsend_allocator -> alc_alloc (
235- mca_pml_bsend_allocator , sendreq -> req_bytes_packed , 0 , NULL );
234+ mca_pml_bsend_allocator , sendreq -> req_bytes_packed , 0 );
236235 if (NULL == sendreq -> req_addr ) {
237236 /* release resources when request is freed */
238237 sendreq -> req_base .req_pml_complete = true;
@@ -287,7 +286,7 @@ int mca_pml_base_bsend_request_alloc(ompi_request_t* request)
287286
288287 /* allocate a buffer to hold packed message */
289288 sendreq -> req_addr = mca_pml_bsend_allocator -> alc_alloc (
290- mca_pml_bsend_allocator , sendreq -> req_bytes_packed , 0 , NULL );
289+ mca_pml_bsend_allocator , sendreq -> req_bytes_packed , 0 );
291290 if (NULL == sendreq -> req_addr ) {
292291 /* release resources when request is freed */
293292 sendreq -> req_base .req_pml_complete = true;
@@ -321,7 +320,7 @@ void* mca_pml_base_bsend_request_alloc_buf( size_t length )
321320
322321 /* allocate a buffer to hold packed message */
323322 buf = mca_pml_bsend_allocator -> alc_alloc (
324- mca_pml_bsend_allocator , length , 0 , NULL );
323+ mca_pml_bsend_allocator , length , 0 );
325324 if (NULL == buf ) {
326325 /* release resources when request is freed */
327326 OPAL_THREAD_UNLOCK (& mca_pml_bsend_mutex );
0 commit comments