Commit 68319052 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

net: remove a sparse error in secure_dccpv6_sequence_number()

make C=2 CF=-D__CHECK_ENDIAN__ net/core/secure_seq.o
net/core/secure_seq.c:157:50: warning: restricted __be32 degrades to
integer
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eb8d7baa
...@@ -154,7 +154,7 @@ u64 secure_dccpv6_sequence_number(__be32 *saddr, __be32 *daddr, ...@@ -154,7 +154,7 @@ u64 secure_dccpv6_sequence_number(__be32 *saddr, __be32 *daddr,
net_secret_init(); net_secret_init();
memcpy(hash, saddr, 16); memcpy(hash, saddr, 16);
for (i = 0; i < 4; i++) 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] + secret[4] = net_secret[4] +
(((__force u16)sport << 16) + (__force u16)dport); (((__force u16)sport << 16) + (__force u16)dport);
for (i = 5; i < MD5_MESSAGE_BYTES / 4; i++) for (i = 5; i < MD5_MESSAGE_BYTES / 4; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment