summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/sockmap_parse_prog.c
diff options
context:
space:
mode:
authorHechao Li <hechaol@fb.com>2019-06-10 17:56:51 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-06-11 10:36:02 +0200
commitebb886078bae29bd60eba3157dc6edae4bbed3a1 (patch)
tree7dc9a087d2652f61cc20df32a9e9c26d2ee1ab94 /tools/testing/selftests/bpf/progs/sockmap_parse_prog.c
parent6446b3155521aab37f5a2b99ac264803ea7dced8 (diff)
downloadlinux-ebb886078bae29bd60eba3157dc6edae4bbed3a1.tar.gz
linux-ebb886078bae29bd60eba3157dc6edae4bbed3a1.tar.bz2
linux-ebb886078bae29bd60eba3157dc6edae4bbed3a1.zip
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/progs/sockmap_parse_prog.c')
-rw-r--r--tools/testing/selftests/bpf/progs/sockmap_parse_prog.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/sockmap_parse_prog.c b/tools/testing/selftests/bpf/progs/sockmap_parse_prog.c
index ed3e4a551c57..9390e0244259 100644
--- a/tools/testing/selftests/bpf/progs/sockmap_parse_prog.c
+++ b/tools/testing/selftests/bpf/progs/sockmap_parse_prog.c
@@ -1,6 +1,5 @@
#include <linux/bpf.h>
#include "bpf_helpers.h"
-#include "bpf_util.h"
#include "bpf_endian.h"
int _version SEC("version") = 1;