Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c2dd16a authored by Alexei Starovoitov's avatar Alexei Starovoitov Committed by David S. Miller
Browse files

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: 6882804c ("selftests/bpf: add a test for overlapping packet range checks")
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6ead18fb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -34,6 +34,6 @@ $(BPFOBJ): force
CLANG ?= clang

%.o: %.c
	$(CLANG) -I../../../include/uapi -I../../../../samples/bpf/ \
		-D__x86_64__ -Wno-compare-distinct-pointer-types \
	$(CLANG) -I. -I../../../include/uapi -I../../../../samples/bpf/ \
		-Wno-compare-distinct-pointer-types \
		-O2 -target bpf -c $< -o $@
+1 −0
Original line number Diff line number Diff line
/* dummy .h to trick /usr/include/features.h to work with 'clang -target bpf' */