Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/bpf/bpftool/btf_dumper.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ static int dump_prog_id_as_func_ptr(const struct btf_dumper *d,
memset(&info, 0, sizeof(info));
info.nr_func_info = 1;
info.func_info_rec_size = finfo_rec_size;
/* Silence -Wuninitialized-const-pointer warning in clang >= 21. */
memset(&finfo, 0, sizeof(finfo));
info.func_info = ptr_to_u64(&finfo);

err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len);
Expand Down
2 changes: 2 additions & 0 deletions tools/bpf/bpftool/prog.c
Original file line number Diff line number Diff line change
Expand Up @@ -2291,6 +2291,8 @@ static char *profile_target_name(int tgt_fd)
memset(&info, 0, sizeof(info));
info.nr_func_info = 1;
info.func_info_rec_size = func_info_rec_size;
/* Silence -Wuninitialized-const-pointer warning in clang >= 21. */
memset(&func_info, 0, sizeof(func_info));
info.func_info = ptr_to_u64(&func_info);

err = bpf_prog_get_info_by_fd(tgt_fd, &info, &info_len);
Expand Down
Loading