summaryrefslogtreecommitdiffstats
path: root/samples/bpf/sock_example.h
diff options
context:
space:
mode:
authorJakub Kicinski2018-05-15 07:35:02 +0200
committerAlexei Starovoitov2018-05-15 07:52:10 +0200
commit2bf3e2ef425bc2a164f10b554b7db6a8b4090ef4 (patch)
tree2a78c9c06062bbc0a7ea392357e49085431ab761 /samples/bpf/sock_example.h
parentMerge branch 'bpf-jit-cleanups' (diff)
downloadkernel-qcow2-linux-2bf3e2ef425bc2a164f10b554b7db6a8b4090ef4.tar.gz
kernel-qcow2-linux-2bf3e2ef425bc2a164f10b554b7db6a8b4090ef4.tar.xz
kernel-qcow2-linux-2bf3e2ef425bc2a164f10b554b7db6a8b4090ef4.zip
samples: bpf: include bpf/bpf.h instead of local libbpf.h
There are two files in the tree called libbpf.h which is becoming problematic. Most samples don't actually need the local libbpf.h they simply include it to get to bpf/bpf.h. Include bpf/bpf.h directly instead. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/sock_example.h')
-rw-r--r--samples/bpf/sock_example.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/samples/bpf/sock_example.h b/samples/bpf/sock_example.h
index 772d5dad8465..a27d7579bc73 100644
--- a/samples/bpf/sock_example.h
+++ b/samples/bpf/sock_example.h
@@ -9,7 +9,6 @@
#include <net/if.h>
#include <linux/if_packet.h>
#include <arpa/inet.h>
-#include "libbpf.h"
static inline int open_raw_sock(const char *name)
{