Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
mod/metrics-analyzer: fix argument compatibility
Browse files Browse the repository at this point in the history
get_limit API defined with the second argument power_limit as
uint32_t. Hence, changing the local variable (placeholder) type to
uint32_t to avoid building compatibility issues.

`unsigned int` translates differently based on the target.

Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
  • Loading branch information
mohamedasaker-arm committed Aug 8, 2024
1 parent 19e742d commit 450a3b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/metrics_analyzer/src/mod_metrics_analyzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static int collect_domain_limits(struct mod_domain_ctx *domain_ctx)

domain_ctx->aggregate_limit = UINT32_MAX;
for (size_t i = 0; i < domain_ctx->metrics_count; ++i) {
unsigned int power_limit;
uint32_t power_limit;
struct mod_metric_ctx *metric_ctx = &domain_ctx->metrics[i];
status = metric_ctx->limit_provider_api->get_limit(
metric_ctx->limit_provider_config->domain_id, &power_limit);
Expand Down

0 comments on commit 450a3b0

Please sign in to comment.