Messages in this thread | | | Subject | Re: [PATCH] libbpf: Initialize *nl_pid so gcc 10 is happy | From | Daniel Borkmann <> | Date | Mon, 6 Apr 2020 22:14:45 +0200 |
| |
On 4/4/20 7:14 AM, Jeremy Cline wrote: > Builds of Fedora's kernel-tools package started to fail with "may be > used uninitialized" warnings for nl_pid in bpf_set_link_xdp_fd() and > bpf_get_link_xdp_info() on the s390 architecture. > > Although libbpf_netlink_open() always returns a negative number when it > does not set *nl_pid, the compiler does not determine this and thus > believes the variable might be used uninitialized. Assuage gcc's fears > by explicitly initializing nl_pid. > > Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1807781 > Signed-off-by: Jeremy Cline <jcline@redhat.com>
Applied, thanks!
| |