|
17 | 17 | * and Technology (RIST). All rights reserved.
|
18 | 18 | * Copyright (c) 2018-2022 Triad National Security, LLC. All rights
|
19 | 19 | * reserved.
|
| 20 | + * Copyright (c) 2022 Amazon.com, Inc. or its affiliates. |
| 21 | + * All Rights reserved. |
20 | 22 | * $COPYRIGHT$
|
21 | 23 | *
|
22 | 24 | * Additional copyrights may follow
|
@@ -331,7 +333,7 @@ do { \
|
331 | 333 | /* See the big, long comment above from DELETE_ATTR_CALLBACKS -- most of
|
332 | 334 | that text applies here, too. */
|
333 | 335 |
|
334 |
| -#define COPY_ATTR_CALLBACKS(type, old_object, keyval_obj, in_attr, new_object, out_attr, err) \ |
| 336 | +#define COPY_ATTR_CALLBACKS(type, old_object, keyval_obj, in_attr, out_attr, err) \ |
335 | 337 | do { \
|
336 | 338 | OPAL_THREAD_UNLOCK(&attribute_lock); \
|
337 | 339 | if (0 != (keyval_obj->attr_flag & OMPI_KEYVAL_F77)) { \
|
@@ -380,7 +382,7 @@ do { \
|
380 | 382 | in = translate_to_c(in_attr); \
|
381 | 383 | if ((err = (*((keyval_obj->copy_attr_fn).attr_##type##_copy_fn)) \
|
382 | 384 | ((ompi_##type##_t *)old_object, key, keyval_obj->extra_state.c_ptr, \
|
383 |
| - in, &out, &flag, (ompi_##type##_t *)(new_object))) == MPI_SUCCESS) { \ |
| 385 | + in, &out, &flag)) == MPI_SUCCESS) { \ |
384 | 386 | out_attr->av_value = out; \
|
385 | 387 | } \
|
386 | 388 | } \
|
@@ -1036,19 +1038,19 @@ int ompi_attr_copy_all(ompi_attribute_type_t type, void *old_object,
|
1036 | 1038 | case COMM_ATTR:
|
1037 | 1039 | /* Now call the copy_attr_fn */
|
1038 | 1040 | COPY_ATTR_CALLBACKS(communicator, old_object, hash_value,
|
1039 |
| - old_attr, new_object, new_attr, err); |
| 1041 | + old_attr, new_attr, err); |
1040 | 1042 | break;
|
1041 | 1043 |
|
1042 | 1044 | case TYPE_ATTR:
|
1043 | 1045 | /* Now call the copy_attr_fn */
|
1044 | 1046 | COPY_ATTR_CALLBACKS(datatype, old_object, hash_value,
|
1045 |
| - old_attr, new_object, new_attr, err); |
| 1047 | + old_attr, new_attr, err); |
1046 | 1048 | break;
|
1047 | 1049 |
|
1048 | 1050 | case WIN_ATTR:
|
1049 | 1051 | /* Now call the copy_attr_fn */
|
1050 | 1052 | COPY_ATTR_CALLBACKS(win, old_object, hash_value,
|
1051 |
| - old_attr, new_object, new_attr, err); |
| 1053 | + old_attr, new_attr, err); |
1052 | 1054 | break;
|
1053 | 1055 |
|
1054 | 1056 | default:
|
|
0 commit comments