linux/tools/perf
Hitoshi Mitake 0eda7385db perf probe: Fix build error of builtin-probe.c
I got this build error when building tip tree:

| cc1: warnings being treated as errors
| builtin-probe.c:123: error: 'opt_show_lines' defined but not used

This error is caused by:

| #ifndef NO_LIBDWARF
|	OPT_CALLBACK('L', "line", NULL,
|		     "FUNC[:RLN[+NUM|:RLN2]]|SRC:ALN[+NUM|:ALN2]",
|		     "Show source code lines.", opt_show_lines),
| #endif

My environment defines NO_LIBDWARF, so gcc treated
opt_show_lines() as garbage. So I moved opt_show_lines() into
#ifndef NO_LIBDWARF ... #endif block.

Signed-off-by: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <1263645076-9993-1-git-send-email-mitake@dcl.info.waseda.ac.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-01-17 07:55:19 +01:00
..
Documentation perf: Fix few typos + cosmetics 2010-01-13 17:39:44 +01:00
bench
scripts/perl
util perf: Fix implicit declaration of getline in util.c 2010-01-17 07:53:09 +01:00
.gitignore
CREDITS
Makefile perf archive: Add helper script to package files needed to do analysis 2010-01-16 10:58:49 +01:00
builtin-annotate.c perf tools: Don't cast RIP to pointers 2010-01-16 10:58:45 +01:00
builtin-bench.c
builtin-buildid-list.c perf buildid-list: Introduce --with-hits option 2010-01-16 10:58:49 +01:00
builtin-diff.c perf tools: Don't cast RIP to pointers 2010-01-16 10:58:45 +01:00
builtin-help.c perf: Make cmd_to_page() function more compact 2010-01-13 10:53:51 +01:00
builtin-kmem.c perf tools: Don't cast RIP to pointers 2010-01-16 10:58:45 +01:00
builtin-list.c
builtin-probe.c perf probe: Fix build error of builtin-probe.c 2010-01-17 07:55:19 +01:00
builtin-record.c perf record: Intercept all events 2010-01-16 10:58:50 +01:00
builtin-report.c perf tools: Don't cast RIP to pointers 2010-01-16 10:58:45 +01:00
builtin-sched.c perf tools: Don't cast RIP to pointers 2010-01-16 10:58:45 +01:00
builtin-stat.c perf tools: Fix --pid option for stat 2010-01-13 10:09:08 +01:00
builtin-timechart.c perf session: Remove redundant prefix & suffix from perf_event_ops 2009-12-28 09:03:35 +01:00
builtin-top.c perf top: Fix code typo in prompt_symbol() 2010-01-13 17:39:44 +01:00
builtin-trace.c perf tools: Don't cast RIP to pointers 2010-01-16 10:58:45 +01:00
builtin.h
command-list.txt perf archive: Add helper script to package files needed to do analysis 2010-01-16 10:58:49 +01:00
design.txt perf: Fix few typos + cosmetics 2010-01-13 17:39:44 +01:00
perf-archive.sh perf archive: Add helper script to package files needed to do analysis 2010-01-16 10:58:49 +01:00
perf.c perf tools: Mount debugfs automatically 2009-12-28 10:36:36 +01:00
perf.h