diff options
author | Hechao Li <hechaol@fb.com> | 2019-06-11 03:56:51 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-06-11 11:36:02 +0300 |
commit | ebb886078bae29bd60eba3157dc6edae4bbed3a1 (patch) | |
tree | 7dc9a087d2652f61cc20df32a9e9c26d2ee1ab94 /tools/testing/selftests/bpf/bpf_endian.h | |
parent | 6446b3155521aab37f5a2b99ac264803ea7dced8 (diff) | |
download | linux-ebb886078bae29bd60eba3157dc6edae4bbed3a1.tar.xz |
selftests/bpf: remove bpf_util.h from BPF C progs
Though currently there is no problem including bpf_util.h in kernel
space BPF C programs, in next patch in this stack, I will reuse
libbpf_num_possible_cpus() in bpf_util.h thus include libbpf.h in it,
which will cause BPF C programs compile error. Therefore I will first
remove bpf_util.h from all test BPF programs.
This can also make it clear that bpf_util.h is a user-space utility
while bpf_helpers.h is a kernel space utility.
Signed-off-by: Hechao Li <hechaol@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_endian.h')
-rw-r--r-- | tools/testing/selftests/bpf/bpf_endian.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/bpf_endian.h b/tools/testing/selftests/bpf/bpf_endian.h index b25595ea4a78..05f036df8a4c 100644 --- a/tools/testing/selftests/bpf/bpf_endian.h +++ b/tools/testing/selftests/bpf/bpf_endian.h @@ -2,6 +2,7 @@ #ifndef __BPF_ENDIAN__ #define __BPF_ENDIAN__ +#include <linux/stddef.h> #include <linux/swab.h> /* LLVM's BPF target selects the endianness of the CPU |