]> asedeno.scripts.mit.edu Git - linux.git/commit
perf tools: Move two variables usied in libperf from perf.c
authorSoramichi AKIYAMA <akiyama@m.soramichi.jp>
Mon, 16 Jan 2017 15:22:37 +0000 (00:22 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 17 Jan 2017 14:36:45 +0000 (11:36 -0300)
commitd25ed5d9fad98fd36ffca0bb5c3a0761a11e3f3c
treecfb25013a0f63d563fe7414d5fc28a0490d30ba2
parent587782c52a83b35673201fd9a54364fa2b189b33
perf tools: Move two variables usied in libperf from perf.c

The use_browser and perf_version_string variables are both declared in
perf.c but they are also referenced by other functions of libperf.a.

Therefore a user linking an own main() with libperf.a must declare those
two variables in their files even if the files never use the browser or
the version information.

This patch fixes this issue by moving use_browser and
perf_version_string out of perf.c to some other files.

Signed-off-by: Soramichi Akiyama <akiyama@m.soramichi.jp>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20170117002237.c1aec0ce3b4d675dca018deb@m.soramichi.jp
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Build
tools/perf/perf.c
tools/perf/ui/setup.c
tools/perf/util/Build
tools/perf/util/header.c