android_kernel_oneplus_msm8998/tools
Vitaly Kuznetsov 6442370b56 Tools: hv: kvp: eliminate 'may be used uninitialized' warning
[ Upstream commit 89eb4d8d25722a0a0194cf7fa47ba602e32a6da7 ]

When building hv_kvp_daemon GCC-8.3 complains:

hv_kvp_daemon.c: In function ‘kvp_get_ip_info.constprop’:
hv_kvp_daemon.c:812:30: warning: ‘ip_buffer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  struct hv_kvp_ipaddr_value *ip_buffer;

this seems to be a false positive: we only use ip_buffer when
op == KVP_OP_GET_IP_INFO and it is only unset when op == KVP_OP_ENUMERATE.

Silence the warning by initializing ip_buffer to NULL.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-09-10 10:29:48 +01:00
..
arch perf bench: Copy kernel files needed to build mem{cpy,set} x86_64 benchmarks 2019-03-23 08:44:37 +01:00
build Kbuild: fix # escaping in .cmd files for future Make 2018-07-19 15:35:57 +02:00
cgroup
firewire
hv Tools: hv: kvp: eliminate 'may be used uninitialized' warning 2019-09-10 10:29:48 +01:00
iio iio: iio-utils: Fix possible incorrect mask calculation 2019-08-04 09:34:57 +02:00
include tools include: Adopt linux/bits.h 2019-06-11 12:23:53 +02:00
laptop/freefall
lguest
lib tools lib traceevent: Fix missing equality check for strcmp 2019-05-16 19:45:06 +02:00
net
nfsd
perf Revert "perf test 6: Fix missing kvm module load for s390" 2019-09-06 10:18:13 +02:00
power cpupower : frequency-set -r option misses the last cpu in related cpu list 2019-08-04 09:34:45 +02:00
scripts Kbuild: fix # escaping in .cmd files for future Make 2018-07-19 15:35:57 +02:00
testing selftests: kvm: Adding config fragments 2019-09-06 10:18:09 +02:00
thermal/tmon tools/thermal: tmon: fix for segfault 2018-05-30 07:49:10 +02:00
time
usb tools: usb: ffs-test: Fix build on big endian systems 2018-09-05 09:18:34 +02:00
virtio
vm tools/vm/page-types.c: fix "defined but not used" warning 2018-10-10 08:52:11 +02:00
Makefile