aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/sendmsg6_prog.c
diff options
context:
space:
mode:
authorDave Marchevsky <[email protected]>2021-10-07 23:12:34 +0000
committerAndrii Nakryiko <[email protected]>2021-10-08 05:01:56 +0000
commitdd65acf72d0e073970459d5da80573a04304aaa9 (patch)
tree92017a43218245cecf88d2f010b607543c24cc6a /tools/testing/selftests/bpf/progs/sendmsg6_prog.c
parentselftests/bpf: Skip the second half of get_branch_snapshot in vm (diff)
downloadkernel-dd65acf72d0e073970459d5da80573a04304aaa9.tar.gz
kernel-dd65acf72d0e073970459d5da80573a04304aaa9.zip
selftests/bpf: Remove SEC("version") from test progs
Since commit 6c4fc209fcf9d ("bpf: remove useless version check for prog load") these "version" sections, which result in bpf_attr.kern_version being set, have been unnecessary. Remove them so that it's obvious to folks using selftests as a guide that "modern" BPF progs don't need this section. Signed-off-by: Dave Marchevsky <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg6_prog.c')
-rw-r--r--tools/testing/selftests/bpf/progs/sendmsg6_prog.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/progs/sendmsg6_prog.c b/tools/testing/selftests/bpf/progs/sendmsg6_prog.c
index 24694b1a8d82..bf9b46b806f6 100644
--- a/tools/testing/selftests/bpf/progs/sendmsg6_prog.c
+++ b/tools/testing/selftests/bpf/progs/sendmsg6_prog.c
@@ -22,8 +22,6 @@
#define DST_REWRITE_PORT6 6666
-int _version SEC("version") = 1;
-
SEC("cgroup/sendmsg6")
int sendmsg_v6_prog(struct bpf_sock_addr *ctx)
{