linux_dsm_epyc7002/tools/testing/selftests
Martin KaFai Lau a2e8bbd2ef 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: 95b9afd398 ("bpf: Test for bpf ID")
Reported-by: Alexei Starovoitov <ast@fb.com>
Reported-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-09 15:15:11 -04:00
..
bpf bpf: Fix test_obj_id.c for llvm 5.0 2017-06-09 15:15:11 -04:00
breakpoints
capabilities
cpu-hotplug
cpufreq
drivers/gpu
efivarfs
exec
filesystems
firmware
ftrace selftests/ftrace: Add a testcase for many kprobe events 2017-05-26 22:37:00 -04:00
futex
gpio
ia64
intel_pstate
ipc
kcmp
lib
locking
media_tests
membarrier
memfd
memory-hotplug
mount
mqueue
net
networking/timestamping
nsfs
ntb
powerpc selftests/powerpc: Fix TM resched DSCR test with some compilers 2017-05-19 19:46:34 +10:00
prctl
pstore
ptp
ptrace
rcutorture
seccomp
sigaltstack
size
splice
static_keys
sync
sysctl
timers linux-kselftest-4.12-rc1 2017-05-08 20:43:30 -07:00
user
vDSO
vm linux-kselftest-4.12-rc1 2017-05-08 20:43:30 -07:00
watchdog
x86 linux-kselftest-4.12-rc1 2017-05-08 20:43:30 -07:00
zram
.gitignore
gen_kselftest_tar.sh
kselftest_install.sh
kselftest.h
lib.mk
Makefile