summaryrefslogtreecommitdiff
path: root/samples/bpf/xdpsock_ctrl_proc.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2021-12-03 02:08:37 +0300
committerAlexei Starovoitov <ast@kernel.org>2021-12-03 02:23:41 +0300
commit080a70b21f476b39ad66524c0ce0729972c61a10 (patch)
treedad6591838a9b35d8414ed4e80d0763b02ff2287 /samples/bpf/xdpsock_ctrl_proc.c
parent8b4ff5f8bb126fa8ee6918f4854748277609cf68 (diff)
parentc93faaaf2f67ba5396840316651cdc7640d9fa9e (diff)
downloadlinux-080a70b21f476b39ad66524c0ce0729972c61a10.tar.xz
Merge branch 'Deprecate bpf_prog_load_xattr() API'
Andrii Nakryiko says: ==================== Few lines in the last patch to mark bpf_prog_load_xattr() deprecated required a decent amount of clean ups in all the other patches. samples/bpf is big part of the clean up. This patch set also bumps libbpf version to 0.7, as libbpf v0.6 release will be cut shortly. ==================== Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/xdpsock_ctrl_proc.c')
-rw-r--r--samples/bpf/xdpsock_ctrl_proc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/samples/bpf/xdpsock_ctrl_proc.c b/samples/bpf/xdpsock_ctrl_proc.c
index 384e62e3c6d6..cc4408797ab7 100644
--- a/samples/bpf/xdpsock_ctrl_proc.c
+++ b/samples/bpf/xdpsock_ctrl_proc.c
@@ -15,6 +15,9 @@
#include <bpf/xsk.h>
#include "xdpsock.h"
+/* libbpf APIs for AF_XDP are deprecated starting from v0.7 */
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
static const char *opt_if = "";
static struct option long_options[] = {