diff --git a/lib/bpf.c b/lib/bpf.c index 1dcb261d..09551990 100644 --- a/lib/bpf.c +++ b/lib/bpf.c @@ -1516,7 +1516,7 @@ static int bpf_find_map_id(const struct bpf_elf_ctx *ctx, uint32_t id) return -ENOENT; } -static void bpf_report_map_in_map(int outer_fd, int inner_fd, uint32_t idx) +static void bpf_report_map_in_map(int outer_fd, uint32_t idx) { struct bpf_elf_map outer_map; int ret; @@ -1683,7 +1683,7 @@ static int bpf_maps_attach_all(struct bpf_elf_ctx *ctx) &inner_fd, BPF_ANY); if (ret < 0) { bpf_report_map_in_map(ctx->map_fds[j], - inner_fd, inner_idx); + inner_idx); return ret; } }