diff options
Diffstat (limited to 'tools/perf/util/callchain.c')
-rw-r--r-- | tools/perf/util/callchain.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/perf/util/callchain.c b/tools/perf/util/callchain.c index 440db12c6359..3dceabd9b5ef 100644 --- a/tools/perf/util/callchain.c +++ b/tools/perf/util/callchain.c | |||
@@ -92,7 +92,7 @@ static void | |||
92 | fill_node(struct callchain_node *node, struct ip_callchain *chain, | 92 | fill_node(struct callchain_node *node, struct ip_callchain *chain, |
93 | int start, struct symbol **syms) | 93 | int start, struct symbol **syms) |
94 | { | 94 | { |
95 | int i; | 95 | unsigned int i; |
96 | 96 | ||
97 | for (i = start; i < chain->nr; i++) { | 97 | for (i = start; i < chain->nr; i++) { |
98 | struct callchain_list *call; | 98 | struct callchain_list *call; |
@@ -135,7 +135,7 @@ split_add_child(struct callchain_node *parent, struct ip_callchain *chain, | |||
135 | { | 135 | { |
136 | struct callchain_node *new; | 136 | struct callchain_node *new; |
137 | struct list_head *old_tail; | 137 | struct list_head *old_tail; |
138 | int idx_total = idx_parents + idx_local; | 138 | unsigned int idx_total = idx_parents + idx_local; |
139 | 139 | ||
140 | /* split */ | 140 | /* split */ |
141 | new = create_child(parent, true); | 141 | new = create_child(parent, true); |
@@ -164,17 +164,18 @@ split_add_child(struct callchain_node *parent, struct ip_callchain *chain, | |||
164 | 164 | ||
165 | static int | 165 | static int |
166 | __append_chain(struct callchain_node *root, struct ip_callchain *chain, | 166 | __append_chain(struct callchain_node *root, struct ip_callchain *chain, |
167 | int start, struct symbol **syms); | 167 | unsigned int start, struct symbol **syms); |
168 | 168 | ||
169 | static void | 169 | static void |
170 | __append_chain_children(struct callchain_node *root, struct ip_callchain *chain, | 170 | __append_chain_children(struct callchain_node *root, struct ip_callchain *chain, |
171 | struct symbol **syms, int start) | 171 | struct symbol **syms, unsigned int start) |
172 | { | 172 | { |
173 | struct callchain_node *rnode; | 173 | struct callchain_node *rnode; |
174 | 174 | ||
175 | /* lookup in childrens */ | 175 | /* lookup in childrens */ |
176 | list_for_each_entry(rnode, &root->children, brothers) { | 176 | list_for_each_entry(rnode, &root->children, brothers) { |
177 | int ret = __append_chain(rnode, chain, start, syms); | 177 | unsigned int ret = __append_chain(rnode, chain, start, syms); |
178 | |||
178 | if (!ret) | 179 | if (!ret) |
179 | return; | 180 | return; |
180 | } | 181 | } |
@@ -184,10 +185,10 @@ __append_chain_children(struct callchain_node *root, struct ip_callchain *chain, | |||
184 | 185 | ||
185 | static int | 186 | static int |
186 | __append_chain(struct callchain_node *root, struct ip_callchain *chain, | 187 | __append_chain(struct callchain_node *root, struct ip_callchain *chain, |
187 | int start, struct symbol **syms) | 188 | unsigned int start, struct symbol **syms) |
188 | { | 189 | { |
189 | struct callchain_list *cnode; | 190 | struct callchain_list *cnode; |
190 | int i = start; | 191 | unsigned int i = start; |
191 | bool found = false; | 192 | bool found = false; |
192 | 193 | ||
193 | /* | 194 | /* |