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-- 228 bytes
Makefile -rw-r--r-- 356 bytes
acl.c -rw-r--r-- 4.6 KB
dcache.c -rw-r--r-- 3.6 KB
devorangefs-req.c -rw-r--r-- 21.9 KB
dir.c -rw-r--r-- 9.1 KB
downcall.h -rw-r--r-- 2.9 KB
file.c -rw-r--r-- 17.1 KB
inode.c -rw-r--r-- 29.0 KB
namei.c -rw-r--r-- 11.5 KB
orangefs-bufmap.c -rw-r--r-- 12.6 KB
orangefs-bufmap.h -rw-r--r-- 925 bytes
orangefs-cache.c -rw-r--r-- 4.3 KB
orangefs-debug.h -rw-r--r-- 2.5 KB
orangefs-debugfs.c -rw-r--r-- 24.7 KB
orangefs-debugfs.h -rw-r--r-- 311 bytes
orangefs-dev-proto.h -rw-r--r-- 2.1 KB
orangefs-kernel.h -rw-r--r-- 13.2 KB
orangefs-mod.c -rw-r--r-- 5.9 KB
orangefs-sysfs.c -rw-r--r-- 33.0 KB
orangefs-sysfs.h -rw-r--r-- 77 bytes
orangefs-utils.c -rw-r--r-- 15.4 KB
protocol.h -rw-r--r-- 11.2 KB
super.c -rw-r--r-- 17.1 KB
symlink.c -rw-r--r-- 497 bytes
upcall.h -rw-r--r-- 6.7 KB
waitqueue.c -rw-r--r-- 10.3 KB
xattr.c -rw-r--r-- 14.7 KB

back to top