OSDN Git Service

ipv6: suppress sparse warnings in IP6_ECN_set_ce()
authorJohannes Berg <johannes.berg@intel.com>
Fri, 12 Aug 2016 05:48:21 +0000 (07:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Nov 2018 15:41:34 +0000 (07:41 -0800)
commit997a4944ce4fdfc5a0ce3adee367ca5daff48244
tree72ca7e9ac33c34d5336552be78e54442d3b5355e
parent9aae17f851e2828de33fa4330cf519397c9aa2bf
ipv6: suppress sparse warnings in IP6_ECN_set_ce()

[ Upstream commit c15c0ab12fd62f2b19181d05c62d24bc9fa55a42 ]

Pass the correct type __wsum to csum_sub() and csum_add(). This doesn't
really change anything since __wsum really *is* __be32, but removes the
address space warnings from sparse.

Cc: Eric Dumazet <edumazet@google.com>
Fixes: 34ae6a1aa054 ("ipv6: update skb->csum when CE mark is propagated")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/inet_ecn.h