From: Florent Fourcot Date: Thu, 12 Dec 2013 16:07:58 +0000 (+0100) Subject: ipv6: fix incorrect type in declaration X-Git-Tag: v5.15~18574^2~501 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68536053600425c24aba031c45f053d447eedd9c;p=platform%2Fkernel%2Flinux-starfive.git ipv6: fix incorrect type in declaration Introduced by 1397ed35f22d7c30d0b89ba74b6b7829220dfcfd "ipv6: add flowinfo for tcp6 pkt_options for all cases" Reported-by: kbuild test robot V2: fix the title, add empty line after the declaration (Sergei Shtylyov feedbacks) Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index 7d93915..759fbf9 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c @@ -1035,7 +1035,8 @@ static int do_ipv6_getsockopt(struct sock *sk, int level, int optname, put_cmsg(&msg, SOL_IPV6, IPV6_2292HOPLIMIT, sizeof(hlim), &hlim); } if (np->rxopt.bits.rxflow) { - int flowinfo = np->rcv_flowinfo; + __be32 flowinfo = np->rcv_flowinfo; + put_cmsg(&msg, SOL_IPV6, IPV6_FLOWINFO, sizeof(flowinfo), &flowinfo); } }