Re: [PATCH net-next 2/2] bpf: Fix test_obj_id.c for llvm 5.0

2017-06-09 Thread David Miller
From: Martin KaFai Lau Date: Thu, 8 Jun 2017 22:30:17 -0700 > 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 -t

Re: [PATCH net-next 2/2] bpf: Fix test_obj_id.c for llvm 5.0

2017-06-09 Thread Yonghong Song
On 6/8/17 10:30 PM, Martin KaFai Lau wrote: 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 \

Re: [PATCH net-next 2/2] bpf: Fix test_obj_id.c for llvm 5.0

2017-06-09 Thread Daniel Borkmann
On 06/09/2017 07:30 AM, Martin KaFai Lau wrote: 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 \

[PATCH net-next 2/2] bpf: Fix test_obj_id.c for llvm 5.0

2017-06-08 Thread Martin KaFai Lau
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