diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-07-01 06:37:06 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-07-01 06:49:48 -0400 |
commit | f37a291c527c954df4da568de718ebb36b8261c0 (patch) | |
tree | bb4863fbd185fbfef5f7d28cb4001d59d4123a2d /tools/perf/util/callchain.h | |
parent | 88a69dfbc6ab1e3b51bba8c9103055e21089ebb9 (diff) |
perf_counter tools: Add more warnings and fix/annotate them
Enable -Wextra. This found a few real bugs plus a number
of signed/unsigned type mismatches/uncleanlinesses. It
also required a few annotations
All things considered it was still worth it so lets try with
this enabled for now.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/callchain.h')
-rw-r--r-- | tools/perf/util/callchain.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/util/callchain.h b/tools/perf/util/callchain.h index c942daa712e6..251d99ecd225 100644 --- a/tools/perf/util/callchain.h +++ b/tools/perf/util/callchain.h | |||
@@ -10,15 +10,15 @@ | |||
10 | struct callchain_node { | 10 | struct callchain_node { |
11 | struct callchain_node *parent; | 11 | struct callchain_node *parent; |
12 | struct list_head brothers; | 12 | struct list_head brothers; |
13 | struct list_head children; | 13 | struct list_head children; |
14 | struct list_head val; | 14 | struct list_head val; |
15 | struct rb_node rb_node; | 15 | struct rb_node rb_node; |
16 | int val_nr; | 16 | unsigned int val_nr; |
17 | int hit; | 17 | u64 hit; |
18 | }; | 18 | }; |
19 | 19 | ||
20 | struct callchain_list { | 20 | struct callchain_list { |
21 | unsigned long ip; | 21 | u64 ip; |
22 | struct symbol *sym; | 22 | struct symbol *sym; |
23 | struct list_head list; | 23 | struct list_head list; |
24 | }; | 24 | }; |