1
1

Fix typo in oob_tcp.c when IPV6 enabled. Cleanup a few other warnings, including a type in coll_sm that prevented that component from registering its MCA params!

Этот коммит содержится в:
Ralph Castain 2015-05-07 21:05:08 -07:00
родитель f1258c3b6c
Коммит 6e95bcd583
4 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -13,6 +13,7 @@
* Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2011-2015 Los Alamos National Security, LLC. * Copyright (c) 2011-2015 Los Alamos National Security, LLC.
* All rights reserved. * All rights reserved.
* Copyright (c) 2015 Intel, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -72,7 +73,7 @@ mca_coll_sm_component_t mca_coll_sm_component = {
/* Component functions */ /* Component functions */
.mca_close_component = sm_close, .mca_close_component = sm_close,
.mca_query_component = sm_register, .mca_register_component_params = sm_register,
}, },
.collm_data = { .collm_data = {
/* The component is not checkpoint ready */ /* The component is not checkpoint ready */

Просмотреть файл

@ -12,6 +12,7 @@
* reserved. * reserved.
* Copyright (c) 2010 IBM Corporation. All rights reserved. * Copyright (c) 2010 IBM Corporation. All rights reserved.
* Copyright (c) 2012-2013 Sandia National Laboratories. All rights reserved. * Copyright (c) 2012-2013 Sandia National Laboratories. All rights reserved.
* Copyright (c) 2015 Intel, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -488,7 +489,7 @@ int ompi_osc_pt2pt_sync (struct ompi_win_t *win)
static int ompi_osc_pt2pt_flush_lock (ompi_osc_pt2pt_module_t *module, ompi_osc_pt2pt_outstanding_lock_t *lock, static int ompi_osc_pt2pt_flush_lock (ompi_osc_pt2pt_module_t *module, ompi_osc_pt2pt_outstanding_lock_t *lock,
int target) int target)
{ {
int ret, flush_count; int ret;
int my_rank = ompi_comm_rank (module->comm); int my_rank = ompi_comm_rank (module->comm);
/* wait until ack has arrived from target, since we need to be /* wait until ack has arrived from target, since we need to be
@ -510,7 +511,6 @@ static int ompi_osc_pt2pt_flush_lock (ompi_osc_pt2pt_module_t *module, ompi_osc_
if (-1 == target) { if (-1 == target) {
/* NTH: no local flush */ /* NTH: no local flush */
flush_count = ompi_comm_size(module->comm) - 1;
for (int i = 0 ; i < ompi_comm_size(module->comm) ; ++i) { for (int i = 0 ; i < ompi_comm_size(module->comm) ; ++i) {
if (i == my_rank) { if (i == my_rank) {
continue; continue;
@ -522,7 +522,6 @@ static int ompi_osc_pt2pt_flush_lock (ompi_osc_pt2pt_module_t *module, ompi_osc_
} }
} }
} else { } else {
flush_count = 1;
/* send control message with flush request and count */ /* send control message with flush request and count */
ret = ompi_osc_pt2pt_flush_remote (module, target, lock); ret = ompi_osc_pt2pt_flush_remote (module, target, lock);

Просмотреть файл

@ -315,6 +315,7 @@ do { \
} }
extern void mca_pml_cm_recv_request_completion(struct mca_mtl_request_t *mtl_request); extern void mca_pml_cm_recv_request_completion(struct mca_mtl_request_t *mtl_request);
extern void mca_pml_cm_recv_fast_completion(struct mca_mtl_request_t *mtl_request);
#endif #endif

Просмотреть файл

@ -238,7 +238,7 @@ static int parse_uri(const uint16_t af_family,
#if OPAL_ENABLE_IPV6 #if OPAL_ENABLE_IPV6
else if (AF_INET6 == af_family) { else if (AF_INET6 == af_family) {
struct sockaddr_in6 *in6; struct sockaddr_in6 *in6;
memset(inaddr, 0, sizeof(struct sockaddr_in6));= memset(inaddr, 0, sizeof(struct sockaddr_in6));
in6 = (struct sockaddr_in6*) inaddr; in6 = (struct sockaddr_in6*) inaddr;
if (0 == inet_pton(AF_INET6, host, (void*)&in6->sin6_addr)) { if (0 == inet_pton(AF_INET6, host, (void*)&in6->sin6_addr)) {