]> 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)
commitc0329b5dc4a1d9f5497e51f9da8fcab2c4894c02
treedb9f0ffc310f0cd7195ccbed35c031cb76b3c664
parent9a04025cc864f49209f208b6ab39cf21265b22d0
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