From: Li Zefan <lizf@cn.fujitsu.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Masami Hiramatsu <mhiramat@redhat.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] perf probe: Fix build failure
Date: Thu, 14 Jan 2010 11:03:47 +0800 [thread overview]
Message-ID: <4B4E8993.5080404@cn.fujitsu.com> (raw)
builtin-probe.c:121: error: 'opt_show_lines' defined but not used
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
tools/perf/builtin-probe.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c
index 1d3a99e..9be8063 100644
--- a/tools/perf/builtin-probe.c
+++ b/tools/perf/builtin-probe.c
@@ -118,6 +118,7 @@ static int opt_del_probe_event(const struct option *opt __used,
return 0;
}
+#ifndef NO_LIBDWARF
static int opt_show_lines(const struct option *opt __used,
const char *str, int unset __used)
{
@@ -127,6 +128,8 @@ static int opt_show_lines(const struct option *opt __used,
session.show_lines = true;
return 0;
}
+#endif
+
/* Currently just checking function name from symbol map */
static void evaluate_probe_point(struct probe_point *pp)
{
--
1.6.3
next reply other threads:[~2010-01-14 3:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-14 3:03 Li Zefan [this message]
2010-01-14 4:51 ` [PATCH] perf probe: Fix build failure Masami Hiramatsu
2010-01-14 5:23 ` Li Zefan
2010-01-14 6:20 ` Masami Hiramatsu
2010-01-14 6:30 ` Li Zefan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B4E8993.5080404@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mhiramat@redhat.com \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.