diff options
author | Martin KaFai Lau <[email protected]> | 2017-06-08 22:30:17 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-06-09 15:15:11 -0400 |
commit | a2e8bbd2ef5457485f00b6b947bbbfa2778e5b1e (patch) | |
tree | b9ddbe21ebbf9ef888e9ce9dcdfbc6247f9d1fd6 /lib/mpi/mpi-internal.h | |
parent | fad07430bc03415a468d4ab28621ca71ae86c583 (diff) |
bpf: Fix test_obj_id.c for llvm 5.0
llvm 5.0 does not like the section name and the function name
to be the same:
clang -I. -I./include/uapi -I../../../include/uapi \
-I../../../../samples/bpf/ \
-Wno-compare-distinct-pointer-types \
-O2 -target bpf -c \
linux/tools/testing/selftests/bpf/test_obj_id.c -o \
linux/tools/testing/selftests/bpf/test_obj_id.o
fatal error: error in backend: 'test_prog_id' label emitted multiple times to
assembly file
clang-5.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 5.0.0 (trunk 304326) (llvm/trunk 304329)
This patch makes changes to the section name and the function name.
Fixes: 95b9afd3987f ("bpf: Test for bpf ID")
Reported-by: Alexei Starovoitov <[email protected]>
Reported-by: Yonghong Song <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions