diff options
| author | Vitaly Kuznetsov <[email protected]> | 2019-08-19 14:44:09 +0000 |
|---|---|---|
| committer | Sasha Levin <[email protected]> | 2019-08-20 15:29:53 +0000 |
| commit | 89eb4d8d25722a0a0194cf7fa47ba602e32a6da7 (patch) | |
| tree | 5f9d31912ee8de84a2fcc67e9b3a7a93d031a1e2 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | Input: hyperv-keyboard: Use in-place iterator API in the channel callback (diff) | |
| download | kernel-89eb4d8d25722a0a0194cf7fa47ba602e32a6da7.tar.gz kernel-89eb4d8d25722a0a0194cf7fa47ba602e32a6da7.zip | |
Tools: hv: kvp: eliminate 'may be used uninitialized' warning
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 <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
