diff options
| author | Nathan Chancellor <natechancellor@gmail.com> | 2017-01-26 20:37:25 -0700 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:32:06 +0200 |
| commit | 16e7cfff9e380882f7586583dcdc3f1127ab5e58 (patch) | |
| tree | 532946e9a04ec34b01ae8b8f49d1c74672c2ac58 /drivers/android | |
| parent | 8024e4be94213b0275c765c9e804eef811ef2dda (diff) | |
net: ipv4: fix maybe-uninitialized warnings
In file included from include/net/inetpeer.h:15:0,
from net/ipv4/tcp_metrics.c:16:
net/ipv4/tcp_metrics.c: In function 'tcp_peer_is_proven':
include/net/ipv6.h:436:38: warning: '*((void *)&addr+8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
return ((ul1[0] ^ ul2[0]) | (ul1[1] ^ ul2[1])) == 0UL;
~~~~~~~~^~~~~~~~~
net/ipv4/tcp_metrics.c:228:23: note: '*((void *)&addr+8)' was declared here
struct inetpeer_addr addr;
^~~~
In file included from include/net/inetpeer.h:15:0,
from net/ipv4/tcp_metrics.c:16:
net/ipv4/tcp_metrics.c: In function 'tcp_tw_remember_stamp':
include/net/ipv6.h:436:38: warning: '*((void *)&addr+8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
return ((ul1[0] ^ ul2[0]) | (ul1[1] ^ ul2[1])) == 0UL;
~~~~~~~~^~~~~~~~~
net/ipv4/tcp_metrics.c:262:23: note: '*((void *)&addr+8)' was declared here
struct inetpeer_addr addr;
^~~~
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'drivers/android')
0 files changed, 0 insertions, 0 deletions
