]> git.baikalelectronics.ru Git - kernel.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)
commitdd7c9268bdc6928562e6fdfb9466fe83076f6fce
tree61c0c14037495636395ab397f41fb74ced244bad
parent96a8b8c50ccf873b4491d077f5ed8c2ba9a73c1f
perf probe: Fix 'function unused' warning

By 'make build-test' a warning is found in probe-event.c that, after
commit 49694aade2 (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