]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
perf test: Fix build of BPF and LLVM on older glibc libraries
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 18 Nov 2015 20:38:49 +0000 (17:38 -0300)
committerSharif Inamdar <isharif@nvidia.com>
Wed, 2 Nov 2016 10:14:35 +0000 (15:44 +0530)
commitf3e500d3ae290cc1ae6f64e01afe5519a222960d
tree892ef21ca65a70836ccd09924a1ef75a470acd03
parent919d9ddae8bbf2b23bc90c21e93d09fa503b7915
perf test: Fix build of BPF and LLVM on older glibc libraries

commit 916d4092a1d2d7bb50630497be71ee4c4c2807fa upstream.

  $ rpm -q glibc
  glibc-2.12-1.166.el6_7.1.x86_64

<SNIP>
    CC       /tmp/build/perf/tests/llvm.o
  cc1: warnings being treated as errors
  tests/llvm.c: In function ‘test_llvm__fetch_bpf_obj’:
  tests/llvm.c:53: error: declaration of ‘index’ shadows a global declaration
  /usr/include/string.h:489: error: shadowed declaration is here
<SNIP>
    CC       /tmp/build/perf/tests/bpf.o
  cc1: warnings being treated as errors
  tests/bpf.c: In function ‘__test__bpf’:
  tests/bpf.c:149: error: declaration of ‘index’ shadows a global declaration
  /usr/include/string.h:489: error: shadowed declaration is here
<SNIP>

Cc: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: pi3orama@163.com
Cc: Wang Nan <wangnan0@huawei.com>
Cc: Zefan Li <lizefan@huawei.com>
Fixes: b31de018a628 ("perf test: Enhance the LLVM test: update basic BPF test program")
Fixes: ba1fae431e74 ("perf test: Add 'perf test BPF'")
Link: http://lkml.kernel.org/n/tip-akpo4r750oya2phxoh9e3447@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Nikolay Borisov <kernel@kyup.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/perf/tests/bpf.c
tools/perf/tests/llvm.c