提交 fecee35b 编写于 作者: A Andrii Nakryiko 提交者: Zheng Zengkai

selftests/bpf: Stop using relaxed_core_relocs which has no effect

mainline inclusion
from mainline-5.16-rc1
commit 23a7baaa
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5EUVD
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=23a7baaa93882c241ad3464cdeeb8ef0d1d40a12

-------------------------------------------------

relaxed_core_relocs option hasn't had any effect for a while now, stop
specifying it. Next patch marks it as deprecated.
Signed-off-by: NAndrii Nakryiko <andrii@kernel.org>
Signed-off-by: NAlexei Starovoitov <ast@kernel.org>
Acked-by: NYonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210916015836.1248906-3-andrii@kernel.org
(cherry picked from commit 23a7baaa)
Signed-off-by: NWang Yufen <wangyufen@huawei.com>
上级 6769efd1
...@@ -249,8 +249,7 @@ static int duration = 0; ...@@ -249,8 +249,7 @@ static int duration = 0;
#define SIZE_CASE_COMMON(name) \ #define SIZE_CASE_COMMON(name) \
.case_name = #name, \ .case_name = #name, \
.bpf_obj_file = "test_core_reloc_size.o", \ .bpf_obj_file = "test_core_reloc_size.o", \
.btf_src_file = "btf__core_reloc_" #name ".o", \ .btf_src_file = "btf__core_reloc_" #name ".o"
.relaxed_core_relocs = true
#define SIZE_OUTPUT_DATA(type) \ #define SIZE_OUTPUT_DATA(type) \
STRUCT_TO_CHAR_PTR(core_reloc_size_output) { \ STRUCT_TO_CHAR_PTR(core_reloc_size_output) { \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册