]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Refactor btf__add_enum() for future code sharing
authorYonghong Song <yhs@fb.com>
Tue, 7 Jun 2022 06:26:15 +0000 (23:26 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 7 Jun 2022 17:20:42 +0000 (10:20 -0700)
commit9ed7d724e74de98aa7f4d601b8742bee6389c5eb
treedb9f0ffc310f0cd7195ccbed35c031cb76b3c664
parent5b5e66ecca609b0729f3b7d496c1112f75a11849
libbpf: Refactor btf__add_enum() for future code sharing

Refactor btf__add_enum() function to create a separate
function btf_add_enum_common() so later the common function
can be used to add enum64 btf type. There is no functionality
change for this patch.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20220607062615.3718063-1-yhs@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/btf.c