summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>2010-01-16 21:31:16 +0900
committerIngo Molnar <mingo@elte.hu>2010-01-17 07:55:19 +0100
commit0eda7385db1f30271ade830a231006938a76fb53 (patch)
tree8b9bf7f38c631907125f7353806be72b14f24978 /drivers/leds
parent69e3f52d1b1a3ed4390bb8a09bb1324265af7fbf (diff)
downloadop-kernel-dev-0eda7385db1f30271ade830a231006938a76fb53.zip
op-kernel-dev-0eda7385db1f30271ade830a231006938a76fb53.tar.gz
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>
Diffstat (limited to 'drivers/leds')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud