diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-12-02 00:28:23 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-12-03 00:23:40 +0100 |
commit | c58f9815ba9735752d3735efb915e8878604684b (patch) | |
tree | 4af974bfbf16a9cf5739729d06f4621f5eccb927 /samples/bpf/xdpsock_ctrl_proc.c | |
parent | samples/bpf: Clean up samples/bpf build failes (diff) | |
download | linux-c58f9815ba9735752d3735efb915e8878604684b.tar.xz linux-c58f9815ba9735752d3735efb915e8878604684b.zip |
samples/bpf: Get rid of deprecated libbpf API uses
Replace deprecated APIs with new ones. Also mute source code using
deprecated AF_XDP (xsk.h). Figuring out what to do with all the AF_XDP
stuff is a separate problem that should be solved with its own set of
changes.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211201232824.3166325-9-andrii@kernel.org
Diffstat (limited to 'samples/bpf/xdpsock_ctrl_proc.c')
-rw-r--r-- | samples/bpf/xdpsock_ctrl_proc.c | 3 |
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[] = { |