Re: [PATCH] libbpf: Initialize err in probe_map_create

From: Florian Fainelli
Date: Wed Aug 31 2022 - 17:51:02 EST




On 8/4/2022 2:50 PM, patchwork-bot+netdevbpf@xxxxxxxxxx wrote:
Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:

On Sun, 31 Jul 2022 19:51:09 -0700 you wrote:
GCC-11 warns about the possibly unitialized err variable in
probe_map_create:

libbpf_probes.c: In function 'probe_map_create':
libbpf_probes.c:361:38: error: 'err' may be used uninitialized in this function [-Werror=maybe-uninitialized]
361 | return fd < 0 && err == exp_err ? 1 : 0;
| ~~~~^~~~~~~~~~

[...]

Here is the summary with links:
- libbpf: Initialize err in probe_map_create
https://git.kernel.org/bpf/bpf-next/c/3045f42a6432

You are awesome, thank you!

Thanks for applying, I was sort of expecting this patch to land to Linus a bit quicker, as far as I can see it is still only in linux-next yet it does fix a build warning turned error. Any chance of fast tracking it?

Thanks!
--
Florian