Skip to content
Closed
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
4 changes: 3 additions & 1 deletion tools/bpf/bpftool/btf_dumper.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ static int dump_prog_id_as_func_ptr(const struct btf_dumper *d,
__u32 info_len = sizeof(info);
const char *prog_name = NULL;
struct btf *prog_btf = NULL;
struct bpf_func_info finfo;
/* Initialize finfo to silence -Wuninitialized-const-pointer warning
* in clang >= 21. */
struct bpf_func_info finfo = {};
__u32 finfo_rec_size;
char prog_str[1024];
int err;
Expand Down
4 changes: 3 additions & 1 deletion tools/bpf/bpftool/prog.c
Original file line number Diff line number Diff line change
Expand Up @@ -2262,7 +2262,9 @@ static void profile_print_readings(void)

static char *profile_target_name(int tgt_fd)
{
struct bpf_func_info func_info;
/* Initialize func_info to silence -Wuninitialized-const-pointer
* warning in clang >= 21. */
struct bpf_func_info func_info = {};
struct bpf_prog_info info = {};
__u32 info_len = sizeof(info);
const struct btf_type *t;
Expand Down
Loading