diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c index a2f53642592b4d7fe3e8bffd12c25f91376c7caf..befe570be5ba27514e2be51609d3a53db06f07c7 100644 --- a/kernel/bpf/btf.c +++ b/kernel/bpf/btf.c @@ -467,7 +467,7 @@ static const struct btf_kind_operations *btf_type_ops(const struct btf_type *t) return kind_ops[BTF_INFO_KIND(t->info)]; } -bool btf_name_offset_valid(const struct btf *btf, u32 offset) +static bool btf_name_offset_valid(const struct btf *btf, u32 offset) { return BTF_STR_OFFSET_VALID(offset) && offset < btf->hdr.str_len;