Revision 89eb4d8d25722a0a0194cf7fa47ba602e32a6da7 authored by Vitaly Kuznetsov on 19 August 2019, 14:44:09 UTC, committed by Sasha Levin on 20 August 2019, 15:29:53 UTC
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>
1 parent d09bc83
History
File Mode Size
Kconfig -rw-r--r-- 1.4 KB
Makefile -rw-r--r-- 351 bytes
acl.c -rw-r--r-- 5.6 KB
addr.c -rw-r--r-- 53.2 KB
cache.c -rw-r--r-- 8.5 KB
cache.h -rw-r--r-- 4.1 KB
caps.c -rw-r--r-- 114.4 KB
ceph_frag.c -rw-r--r-- 401 bytes
debugfs.c -rw-r--r-- 7.5 KB
dir.c -rw-r--r-- 48.0 KB
export.c -rw-r--r-- 12.9 KB
file.c -rw-r--r-- 54.6 KB
inode.c -rw-r--r-- 64.9 KB
ioctl.c -rw-r--r-- 7.4 KB
ioctl.h -rw-r--r-- 3.6 KB
locks.c -rw-r--r-- 12.1 KB
mds_client.c -rw-r--r-- 122.1 KB
mds_client.h -rw-r--r-- 15.9 KB
mdsmap.c -rw-r--r-- 9.3 KB
quota.c -rw-r--r-- 14.0 KB
snap.c -rw-r--r-- 31.6 KB
strings.c -rw-r--r-- 4.2 KB
super.c -rw-r--r-- 28.5 KB
super.h -rw-r--r-- 35.8 KB
xattr.c -rw-r--r-- 33.8 KB

back to top