summaryrefslogtreecommitdiffstats
path: root/net/core/secure_seq.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2012-01-16 19:27:39 +0000
committerDavid S. Miller <davem@davemloft.net>2012-01-17 10:31:12 -0500
commit747465ef7a082033e086dedc8189febfda43b015 (patch)
treeefbdc7a1f25f7bced035077769b4005ea1419abc /net/core/secure_seq.c
parent2b2d465631db59c144f537a9bef47a883c55d670 (diff)
downloadlinux-747465ef7a082033e086dedc8189febfda43b015.tar.gz
linux-747465ef7a082033e086dedc8189febfda43b015.tar.bz2
linux-747465ef7a082033e086dedc8189febfda43b015.zip
net: fix some sparse errors
make C=2 CF="-D__CHECK_ENDIAN__" M=net And fix flowi4_init_output() prototype for sport Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/secure_seq.c')
-rw-r--r--net/core/secure_seq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/secure_seq.c b/net/core/secure_seq.c
index 6fd44606fdd1..99b2596531bb 100644
--- a/net/core/secure_seq.c
+++ b/net/core/secure_seq.c
@@ -46,7 +46,7 @@ __u32 secure_tcpv6_sequence_number(const __be32 *saddr, const __be32 *daddr,
memcpy(hash, saddr, 16);
for (i = 0; i < 4; i++)
- secret[i] = net_secret[i] + daddr[i];
+ secret[i] = net_secret[i] + (__force u32)daddr[i];
secret[4] = net_secret[4] +
(((__force u16)sport << 16) + (__force u16)dport);
for (i = 5; i < MD5_MESSAGE_BYTES / 4; i++)