perf tools: Fix build when using gcc 3.4.6
Commit-ID: 5c7a66822c8b619966d9367594054778608fc5d1 Gitweb: http://git.kernel.org/tip/5c7a66822c8b619966d9367594054778608fc5d1 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Sat, 22 Jan 2011 19:12:38 -0200 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Sat, 22 Jan 2011 19:15:39 -0200
perf tools: Fix build when using gcc 3.4.6
[acme@localhost linux]$ make O=~acme/git/build/perf -C tools/perf
make: Entering directory `/home/acme/git/linux/tools/perf'
Makefile:526: No libdw.h found or old libdw.h found or elfutils is older than 0.138, disables dwarf support. Please install new elfutils-devel/libdw-dev Makefile:582: newt not found, disables TUI support. Please install newt-devel or libnewt-dev
CC /home/acme/git/build/perf/builtin-annotate.o
In file included from builtin-annotate.c:23:util/parse-events.h:26: warning: declaration of 'evsel_list' shadows a global declarationutil/parse-events.h:12: warning: shadowed declaration is here
make: *** [/home/acme/git/build/perf/builtin-annotate.o] Error 1
make: Leaving directory `/home/acme/git/linux/tools/perf'
[acme@localhost linux]$ gcc --version | head -1
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11)
[acme@localhost linux]$
Fix it by renaming the parameter to evlist.
Cc: Eric Dumazet <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Tom Zanussi <[email protected]>
LKML-Reference: <new-submission>
--- tools/perf/util/parse-events.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
tools/perf/util/parse-events.h +1 -1
@@ -23,7 +23,7 @@ struct tracepoint_path { };extern struct tracepoint_path *tracepoint_id_to_path (u64 config); -extern bool have_tracepoints (struct list_head *evsel_list); +extern bool have_tracepoints (struct list_head *evlist);extern int nr_counters;