diff options
author | Eric Dumazet <edumazet@google.com> | 2015-05-25 18:55:48 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-25 22:55:37 -0400 |
commit | 68319052d10d18462fbfd5571a5062cb7ec50788 (patch) | |
tree | 7269479fff87708cae616ef24cf66ef4a309e423 /net/core | |
parent | eb8d7baae21584a7b27e79c2deca3eee72376ff0 (diff) | |
download | op-kernel-dev-68319052d10d18462fbfd5571a5062cb7ec50788.zip op-kernel-dev-68319052d10d18462fbfd5571a5062cb7ec50788.tar.gz |
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: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/secure_seq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/secure_seq.c b/net/core/secure_seq.c index 51dd319..fd3ce46 100644 --- a/net/core/secure_seq.c +++ b/net/core/secure_seq.c @@ -154,7 +154,7 @@ u64 secure_dccpv6_sequence_number(__be32 *saddr, __be32 *daddr, net_secret_init(); 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++) |