mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
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: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
228b0324fe
commit
0a5539f661
@ -35,6 +35,7 @@ $(BPFOBJ): force
|
||||
CLANG ?= clang
|
||||
|
||||
%.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 \
|
||||
-O2 -target bpf -c $< -o $@
|
||||
|
6
tools/testing/selftests/bpf/include/uapi/linux/types.h
Normal file
6
tools/testing/selftests/bpf/include/uapi/linux/types.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef _UAPI_LINUX_TYPES_H
|
||||
#define _UAPI_LINUX_TYPES_H
|
||||
|
||||
#include <asm-generic/int-ll64.h>
|
||||
|
||||
#endif /* _UAPI_LINUX_TYPES_H */
|
Loading…
Reference in New Issue
Block a user