Skip to content

Commit 72f8f57

Browse files
UCP/PROTO: PR fixes
1 parent 0d1f7b5 commit 72f8f57

File tree

7 files changed

+12
-13
lines changed

7 files changed

+12
-13
lines changed

src/ucp/core/ucp_request.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -731,11 +731,12 @@ void ucp_request_purge_enqueue_cb(uct_pending_req_t *self, void *arg)
731731

732732
ucs_status_t ucp_request_progress_counter(uct_pending_req_t *self)
733733
{
734-
ucp_request_t *req = ucs_container_of(self, ucp_request_t, send.uct);
734+
ucp_request_t *req = ucs_container_of(self, ucp_request_t,
735+
send.uct);
735736
ucp_proto_config_t *proto_config = ucs_const_cast(ucp_proto_config_t*,
736737
req->send.proto_config);
737738
const ucp_proto_t *proto = proto_config->proto;
738-
unsigned proto_usage_count_max =
739+
unsigned proto_usage_count_max =
739740
req->send.ep->worker->context->config.ext.proto_usage_count_max;
740741
ucs_status_t status;
741742

@@ -800,9 +801,8 @@ ucs_status_t ucp_request_progress_wrapper(uct_pending_req_t *self)
800801
return status;
801802
}
802803

803-
void ucp_request_init_progress_wrapper(ucp_worker_h worker,
804-
ucp_proto_config_t *proto_config,
805-
int internal)
804+
void ucp_request_progress_wrapper_init(ucp_worker_h worker,
805+
ucp_proto_config_t *proto_config)
806806
{
807807
uint8_t stage;
808808

@@ -820,7 +820,6 @@ void ucp_request_init_progress_wrapper(ucp_worker_h worker,
820820
sizeof(proto_config->progress_wrapper));
821821

822822
if (worker->context->config.trace_used_proto_selections) {
823-
/* Set counting wrapper for the first stage */
824823
proto_config->progress_wrapper[UCP_PROTO_STAGE_START] =
825824
ucp_request_progress_counter;
826825
}

src/ucp/core/ucp_request.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,7 @@ void ucp_request_purge_enqueue_cb(uct_pending_req_t *self, void *arg);
587587

588588
ucs_status_t ucp_request_progress_wrapper(uct_pending_req_t *self);
589589

590-
void ucp_request_init_progress_wrapper(ucp_worker_h worker,
591-
ucp_proto_config_t *proto_config,
592-
int internal);
590+
void ucp_request_progress_wrapper_init(ucp_worker_h worker,
591+
ucp_proto_config_t *proto_config);
593592

594593
#endif

src/ucp/proto/proto_debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static int ucp_proto_debug_is_info_enabled(ucp_context_h context,
172172
if (!strcasecmp(proto_info_config, "auto")) {
173173
return ucs_log_is_enabled(UCS_LOG_LEVEL_DEBUG);
174174
}
175-
175+
176176
/* Handle boolean */
177177
if (ucs_config_sscanf_bool(proto_info_config, &bool_value, NULL)) {
178178
return bool_value;

src/ucp/proto/proto_select.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ static ucs_status_t ucp_proto_select_elem_add_envelope(
300300
proto_config->init_elem = proto;
301301
proto_config->selections = 0;
302302
*last_proto_idx = proto_idx;
303-
ucp_request_init_progress_wrapper(worker, proto_config, internal);
303+
ucp_request_progress_wrapper_init(worker, proto_config);
304304
}
305305

306306
/* Print detailed protocol selection data to a user-configured path */

src/ucp/proto/proto_select.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ struct ucp_proto_select_param {
9595
} UCS_S_PACKED op;
9696
} UCS_S_PACKED;
9797

98+
9899
/**
99100
* Protocol and its private configuration
100101
*/

src/ucp/rndv/proto_rndv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ void ucp_proto_rndv_set_variant_config(
330330
proto_config->select_param = *select_param;
331331
proto_config->init_elem = proto;
332332
proto_config->selections = 0;
333-
ucp_request_init_progress_wrapper(init_params->worker, proto_config, 1);
333+
ucp_request_progress_wrapper_init(init_params->worker, proto_config);
334334
}
335335

336336
/* Probe a rndv_ctrl variant with a given remote protocol */

src/ucs/sys/compiler_def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
* @param _type Type of the non-const pointer.
201201
* @param _ptr Pointer to cast.
202202
*
203-
* @return Casted non-const pointer.
203+
* @return Cast non-const pointer.
204204
*/
205205
#define ucs_const_cast(_type, _ptr) (_type)(uintptr_t)(const void*)(_ptr)
206206

0 commit comments

Comments
 (0)