diff options
author | Dave Marchevsky <davemarchevsky@fb.com> | 2021-10-07 16:12:34 -0700 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-10-07 22:01:56 -0700 |
commit | dd65acf72d0e073970459d5da80573a04304aaa9 (patch) | |
tree | 92017a43218245cecf88d2f010b607543c24cc6a /tools/testing/selftests/bpf/progs/get_cgroup_id_kern.c | |
parent | aa67fdb4643616f04cb59b6d090010c371ab1a80 (diff) | |
download | linux-stable-dd65acf72d0e073970459d5da80573a04304aaa9.tar.gz linux-stable-dd65acf72d0e073970459d5da80573a04304aaa9.tar.bz2 linux-stable-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/get_cgroup_id_kern.c')
-rw-r--r-- | tools/testing/selftests/bpf/progs/get_cgroup_id_kern.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/get_cgroup_id_kern.c b/tools/testing/selftests/bpf/progs/get_cgroup_id_kern.c index 6b42db2fe391..68587b1de34e 100644 --- a/tools/testing/selftests/bpf/progs/get_cgroup_id_kern.c +++ b/tools/testing/selftests/bpf/progs/get_cgroup_id_kern.c @@ -37,4 +37,3 @@ int trace(void *ctx) } char _license[] SEC("license") = "GPL"; -__u32 _version SEC("version") = 1; /* ignored by tracepoints, required by libbpf.a */ |