]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
perf probe: Fix 'function unused' warning
authorWang Nan <wangnan0@huawei.com>
Thu, 28 May 2015 02:25:05 +0000 (02:25 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 29 May 2015 15:43:39 +0000 (12:43 -0300)
commit60fb7742928dab3c6a0fec7f2d2cce26d9366a3c
tree61c0c14037495636395ab397f41fb74ced244bad
parent44848cdbbd1bacbac2a825920b699adc000d51c7
perf probe: Fix 'function unused' warning

By 'make build-test' a warning is found in probe-event.c that, after
commit 419e873828 (perf probe: Show the error reason comes from
invalid DSO) the only user of kernel_get_module_dso() is
open_debuginfo(). Which is not compiled if HAVE_DWARF_SUPPORT not set.

'make build-test' found this problem when make_minimal.

This patch moves kernel_get_module_dso() to HAVE_DWARF_SUPPORT ifdef
section.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1432779905-206143-1-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-event.c