Skip to content

Commit 8064b3c

Browse files
edumazetdavem330
authored andcommitted
ipv6: fix a sparse warning
net/ipv6/reassembly.c:82:72: warning: incorrect type in argument 3 (different base types) net/ipv6/reassembly.c:82:72: expected unsigned int [unsigned] [usertype] c net/ipv6/reassembly.c:82:72: got restricted __be32 [usertype] id Signed-off-by: Eric Dumazet <edumazet@google.com> Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 40d1ae5 commit 8064b3c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎net/ipv6/reassembly.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ unsigned int inet6_hash_frag(__be32 id, const struct in6_addr *saddr,
7979
{
8080
u32 c;
8181

82-
c = jhash_3words(ipv6_addr_hash(saddr), ipv6_addr_hash(daddr), id, rnd);
82+
c = jhash_3words(ipv6_addr_hash(saddr), ipv6_addr_hash(daddr),
83+
(__force u32)id, rnd);
8384

8485
return c & (INETFRAGS_HASHSZ - 1);
8586
}

0 commit comments

Comments
 (0)