summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJeremy Cline <jcline@redhat.com>2020-04-04 01:14:30 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-02 08:48:55 +0200
commit316ad98983d947ae9e13856247966dda950342d4 (patch)
treec043cedd765c60e0325edfe46f6d0b27973e5161 /tools/perf/scripts/python/export-to-postgresql.py
parent3c9bbe7f44f64688b914a1ac62be92d2597f8b81 (diff)
libbpf: Initialize *nl_pid so gcc 10 is happy
[ Upstream commit 4734b0fefbbf98f8c119eb8344efa19dac82cd2c ] 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> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200404051430.698058-1-jcline@redhat.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions