hulk inclusion category: bugfix bugzilla: https://atomgit.com/openeuler/kernel/issues/8335 ---------------------------------------- After fdc9f2ea9a9d ("bpf: treewide: Annotate BPF kfuncs in BTF"), all kfuns should wrap by BTF_KFUNCS_START. Fix this missing self dev x86 kfuns. Fixes: fdc9f2ea9a9d ("bpf: treewide: Annotate BPF kfuncs in BTF") Signed-off-by: Luo Gengkun <luogengkun2@huawei.com> --- arch/x86/kernel/cpu/bpf-rvi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/bpf-rvi.c b/arch/x86/kernel/cpu/bpf-rvi.c index dc71657623ed..a5de8f4d0c86 100644 --- a/arch/x86/kernel/cpu/bpf-rvi.c +++ b/arch/x86/kernel/cpu/bpf-rvi.c @@ -142,9 +142,9 @@ __bpf_kfunc const char *bpf_arch_flags(enum arch_flags_type t, int i) } } -BTF_SET8_START(bpf_arch_flags_kfunc_ids) +BTF_KFUNCS_START(bpf_arch_flags_kfunc_ids) BTF_ID_FLAGS(func, bpf_arch_flags) -BTF_SET8_END(bpf_arch_flags_kfunc_ids) +BTF_KFUNCS_END(bpf_arch_flags_kfunc_ids) static const struct btf_kfunc_id_set bpf_arch_flags_kfunc_set = { .owner = THIS_MODULE, -- 2.34.1