aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Gao <[email protected]>2022-08-17 01:38:04 +0800
committerArnaldo Carvalho de Melo <[email protected]>2022-10-04 08:55:19 -0300
commit84f879c5331873a7b4036ff2f319d0f2fcf4179b (patch)
treed167ec1afacc2f5a34735e113a6bbef6387d3c86
parentf1417cea017dff2bbf2836bf67abd8e25e624411 (diff)
perf metrics: Use 'unsigned int' instead of just 'unsigned'.
'unsigned int' should be clearer than 'unsigned'. Signed-off-by: Xin Gao <[email protected]> Cc: Ian Rogers <[email protected]> Cc: John Garry <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r--tools/perf/util/metricgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c
index c93bcaf6d55d..18aae040d61d 100644
--- a/tools/perf/util/metricgroup.c
+++ b/tools/perf/util/metricgroup.c
@@ -1703,7 +1703,7 @@ int metricgroup__copy_metric_events(struct evlist *evlist, struct cgroup *cgrp,
struct rblist *new_metric_events,
struct rblist *old_metric_events)
{
- unsigned i;
+ unsigned int i;
for (i = 0; i < rblist__nr_entries(old_metric_events); i++) {
struct rb_node *nd;