aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf/xdpsock_ctrl_proc.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2021-12-02 15:08:37 -0800
committerAlexei Starovoitov <ast@kernel.org>2021-12-02 15:23:41 -0800
commit080a70b21f476b39ad66524c0ce0729972c61a10 (patch)
treedad6591838a9b35d8414ed4e80d0763b02ff2287 /samples/bpf/xdpsock_ctrl_proc.c
parentselftests/bpf: Update test names for xchg and cmpxchg (diff)
parentlibbpf: Deprecate bpf_prog_load_xattr() API (diff)
downloadlinux-dev-080a70b21f476b39ad66524c0ce0729972c61a10.tar.xz
linux-dev-080a70b21f476b39ad66524c0ce0729972c61a10.zip
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[] = {