net: Fix various endianness glitches
Sparse can help us find endianness bugs, but we need to make some cleanups to be able to more easily spot real bugs. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
cb903bf4ee
commit
0eae88f31c
@@ -588,7 +588,8 @@ static u32 ipv6_addr_hash(const struct in6_addr *addr)
|
||||
* We perform the hash function over the last 64 bits of the address
|
||||
* This will include the IEEE address token on links that support it.
|
||||
*/
|
||||
return jhash_2words(addr->s6_addr32[2], addr->s6_addr32[3], 0)
|
||||
return jhash_2words((__force u32)addr->s6_addr32[2],
|
||||
(__force u32)addr->s6_addr32[3], 0)
|
||||
& (IN6_ADDR_HSIZE - 1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user