“922a70d327bd4b11342c2afd08e20d35f52064c3”上不存在“arch/arm/include/asm/processor.h”
提交 52df1a8a 编写于 作者: S Sahid Orentino Ferdjaoui 提交者: Alexei Starovoitov

bpftool: remove function free_btf_vmlinux()

The function contains a single btf__free() call which can be
inlined. Credits to Yonghong Song.
Signed-off-by: NSahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Acked-by: NYonghong Song <yhs@fb.com>
Suggested-by: NYonghong Song <yhs@fb.com>
Reviewed-by: NQuentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/r/20221120112515.38165-6-sahid.ferdjaoui@industrialdiscipline.comSigned-off-by: NAlexei Starovoitov <ast@kernel.org>
上级 d1313e01
...@@ -811,11 +811,6 @@ static void free_map_kv_btf(struct btf *btf) ...@@ -811,11 +811,6 @@ static void free_map_kv_btf(struct btf *btf)
btf__free(btf); btf__free(btf);
} }
static void free_btf_vmlinux(void)
{
btf__free(btf_vmlinux);
}
static int static int
map_dump(int fd, struct bpf_map_info *info, json_writer_t *wtr, map_dump(int fd, struct bpf_map_info *info, json_writer_t *wtr,
bool show_header) bool show_header)
...@@ -952,7 +947,7 @@ static int do_dump(int argc, char **argv) ...@@ -952,7 +947,7 @@ static int do_dump(int argc, char **argv)
close(fds[i]); close(fds[i]);
exit_free: exit_free:
free(fds); free(fds);
free_btf_vmlinux(); btf__free(btf_vmlinux);
return err; return err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册