]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: get rid of -D__x86_64__
authorAlexei Starovoitov <ast@fb.com>
Wed, 3 May 2017 04:14:43 +0000 (21:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 May 2017 13:51:25 +0000 (09:51 -0400)
commit511f61e6928dc3d843e0c9a0d65a0fd5722a53aa
treea9efec88cd7ddbf718c46c8a279d8f72101b0eca
parent370852b711a4c54de6f7f074063f7a364228069b
selftests/bpf: get rid of -D__x86_64__

-D__x86_64__ workaround was used to make /usr/include/features.h
to follow expected path through the system include headers.
This is not portable.
Instead define dummy stubs.h which is used by 'clang -target bpf'

Fixes: 83680d6eee2b ("selftests/bpf: add a test for overlapping packet range checks")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/gnu/stubs.h [new file with mode: 0644]