aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/env.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2020-03-02 11:13:19 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-03-02 11:15:07 -0300
commitcff20b3151ccab690715cb6cf0f5da5cccb32adf (patch)
tree99e5464cd795f456ab8a4cdd54e9737d1669a049 /tools/perf/util/env.c
parentperf annotate: Fix segfault with source toggle (diff)
downloadlinux-dev-cff20b3151ccab690715cb6cf0f5da5cccb32adf.tar.xz
linux-dev-cff20b3151ccab690715cb6cf0f5da5cccb32adf.zip
perf tests bp_account: Make global variable static
To fix the build with newer gccs, that without this patch exit with: LD /tmp/build/perf/tests/perf-in.o ld: /tmp/build/perf/tests/bp_account.o:/git/perf/tools/perf/tests/bp_account.c:22: multiple definition of `the_var'; /tmp/build/perf/tests/bp_signal.o:/git/perf/tools/perf/tests/bp_signal.c:38: first defined here make[4]: *** [/git/perf/tools/build/Makefile.build:145: /tmp/build/perf/tests/perf-in.o] Error 1 First noticed in fedora:rawhide/32 with: [perfbuilder@a5ff49d6e6e4 ~]$ gcc --version gcc (GCC) 10.0.1 20200216 (Red Hat 10.0.1-0.8) Reported-by: Jiri Olsa <jolsa@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/env.c')
0 files changed, 0 insertions, 0 deletions