hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IDC9YK -------------------------------- bpf: Fix kabi for value_type_btf_obj_fd in union bpf_attr. Fixes: ab88336406ac ("bpf: pass attached BTF to the bpf_struct_ops subsystem") Signed-off-by: Zicheng Qu <quzicheng@huawei.com> --- include/uapi/linux/bpf.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 7d5905f403f7..72c257cf1cd8 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -1412,10 +1412,13 @@ union bpf_attr { */ __u64 map_extra; - __s32 value_type_btf_obj_fd; /* fd pointing to a BTF - * type data for - * btf_vmlinux_value_type_id. - */ + /* fd pointing to a BTF + * type data for + * btf_vmlinux_value_type_id. + */ +#if !defined(__GENKSYMS__) + __s32 value_type_btf_obj_fd; +#endif }; struct { /* anonymous struct used by BPF_MAP_*_ELEM commands */ -- 2.34.1