From: Antoine Tenart Date: Tue, 3 Aug 2021 10:00:16 +0000 (+0200) Subject: net: ipv6: fix returned variable type in ip6_skb_dst_mtu X-Git-Tag: v5.15~612^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4039146777a91e1576da2bf38e0d8a1061a1ae47;p=platform%2Fkernel%2Flinux-starfive.git net: ipv6: fix returned variable type in ip6_skb_dst_mtu The patch fixing the returned value of ip6_skb_dst_mtu (int -> unsigned int) was rebased between its initial review and the version applied. In the meantime fade56410c22 was applied, which added a new variable (int) used as the returned value. This lead to a mismatch between the function prototype and the variable used as the return value. Fixes: 40fc3054b458 ("net: ipv6: fix return value of ip6_skb_dst_mtu") Cc: Vadim Fedorenko Signed-off-by: Antoine Tenart Signed-off-by: David S. Miller --- diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index 625a38c..0bf09a9b 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h @@ -265,7 +265,7 @@ int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, static inline unsigned int ip6_skb_dst_mtu(struct sk_buff *skb) { - int mtu; + unsigned int mtu; struct ipv6_pinfo *np = skb->sk && !dev_recursion_level() ? inet6_sk(skb->sk) : NULL;