aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/sockmap_verdict_prog.c
diff options
context:
space:
mode:
authorDave Marchevsky <davemarchevsky@fb.com>2021-10-07 16:12:34 -0700
committerAndrii Nakryiko <andrii@kernel.org>2021-10-07 22:01:56 -0700
commitdd65acf72d0e073970459d5da80573a04304aaa9 (patch)
tree92017a43218245cecf88d2f010b607543c24cc6a /tools/testing/selftests/bpf/progs/sockmap_verdict_prog.c
parentselftests/bpf: Skip the second half of get_branch_snapshot in vm (diff)
downloadlinux-dev-dd65acf72d0e073970459d5da80573a04304aaa9.tar.xz
linux-dev-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 <davemarchevsky@fb.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20211007231234.2223081-1-davemarchevsky@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sockmap_verdict_prog.c')
-rw-r--r--tools/testing/selftests/bpf/progs/sockmap_verdict_prog.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/progs/sockmap_verdict_prog.c b/tools/testing/selftests/bpf/progs/sockmap_verdict_prog.c
index 73872c535cbb..e2468a6d01a5 100644
--- a/tools/testing/selftests/bpf/progs/sockmap_verdict_prog.c
+++ b/tools/testing/selftests/bpf/progs/sockmap_verdict_prog.c
@@ -2,8 +2,6 @@
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_endian.h>
-int _version SEC("version") = 1;
-
struct {
__uint(type, BPF_MAP_TYPE_SOCKMAP);
__uint(max_entries, 20);