aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>2009-12-02 03:08:41 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-02 03:27:01 -0500
commitbdad0db7dbdb37d0bb3c7d0f65cd3ff599ea6ecb (patch)
treea87d06eb673369d0f2cdbb20fb541b312b6d2bd5
parentc19e33aa840e9202ef8d4c93056b59f3edc2208d (diff)
perf_event: Fix compile error
Fix: cc1: warnings being treated as errors builtin-probe.c: In function 'cmd_probe': builtin-probe.c:163: error: unused variable 'fd' Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> Cc: Masami Hiramatsu <mhiramat@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <4B162089.8000907@cn.fujitsu.com> [ v2: use NO_LIBDWARF instead of __used ] Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--tools/perf/builtin-probe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c
index b5d15cf2547..a58e11b7ea8 100644
--- a/tools/perf/builtin-probe.c
+++ b/tools/perf/builtin-probe.c
@@ -160,7 +160,10 @@ static const struct option options[] = {
160 160
161int cmd_probe(int argc, const char **argv, const char *prefix __used) 161int cmd_probe(int argc, const char **argv, const char *prefix __used)
162{ 162{
163 int i, j, fd, ret; 163 int i, j, ret;
164#ifndef NO_LIBDWARF
165 int fd;
166#endif
164 struct probe_point *pp; 167 struct probe_point *pp;
165 168
166 argc = parse_options(argc, argv, options, probe_usage, 169 argc = parse_options(argc, argv, options, probe_usage,