Commit 0a5539f6 authored by David S. Miller's avatar David S. Miller

bpf: Provide a linux/types.h override for bpf selftests.

We do not want to use the architecture's type.h header when
building BPF programs which are always 64-bit.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 228b0324
...@@ -35,6 +35,7 @@ $(BPFOBJ): force ...@@ -35,6 +35,7 @@ $(BPFOBJ): force
CLANG ?= clang CLANG ?= clang
%.o: %.c %.o: %.c
$(CLANG) -I. -I../../../include/uapi -I../../../../samples/bpf/ \ $(CLANG) -I. -I./include/uapi -I../../../include/uapi \
-I../../../../samples/bpf/ \
-Wno-compare-distinct-pointer-types \ -Wno-compare-distinct-pointer-types \
-O2 -target bpf -c $< -o $@ -O2 -target bpf -c $< -o $@
#ifndef _UAPI_LINUX_TYPES_H
#define _UAPI_LINUX_TYPES_H
#include <asm-generic/int-ll64.h>
#endif /* _UAPI_LINUX_TYPES_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment