projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c19e33a
)
perf_event: Fix compile error
author
Xiao Guangrong
<
[email protected]
>
Wed, 2 Dec 2009 08:08:41 +0000
(16:08 +0800)
committer
Ingo Molnar
<
[email protected]
>
Wed, 2 Dec 2009 08:27:01 +0000
(09:27 +0100)
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 <
[email protected]
>
Cc: Masami Hiramatsu <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
LKML-Reference: <
4B162089
.
8000907
@cn.fujitsu.com>
[ v2: use NO_LIBDWARF instead of __used ]
Signed-off-by: Ingo Molnar <
[email protected]
>
tools/perf/builtin-probe.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-probe.c
b/tools/perf/builtin-probe.c
index b5d15cf254710e62c606e38731775c22077fc942..a58e11b7ea8000de71659a93f093d5d2dcddcb73 100644
(file)
--- a/
tools/perf/builtin-probe.c
+++ b/
tools/perf/builtin-probe.c
@@
-160,7
+160,10
@@
static const struct option options[] = {
int cmd_probe(int argc, const char **argv, const char *prefix __used)
{
- int i, j, fd, ret;
+ int i, j, ret;
+#ifndef NO_LIBDWARF
+ int fd;
+#endif
struct probe_point *pp;
argc = parse_options(argc, argv, options, probe_usage,