From patchwork Thu Dec 12 16:07:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florent Fourcot X-Patchwork-Id: 300699 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id AC22D2C008F for ; Fri, 13 Dec 2013 03:08:15 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751824Ab3LLQIL (ORCPT ); Thu, 12 Dec 2013 11:08:11 -0500 Received: from fourcot.fr ([217.70.191.14]:39959 "EHLO olfflo.fourcot.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751704Ab3LLQIK (ORCPT ); Thu, 12 Dec 2013 11:08:10 -0500 Received: from reglisse.fourcot.fr (unknown [IPv6:2001:470:51a3:666::1]) (Authenticated sender: reglisse) by olfflo.fourcot.fr (Postfix) with ESMTPSA id DE1462E034; Thu, 12 Dec 2013 17:08:07 +0100 (CET) Received: by reglisse.fourcot.fr (Postfix, from userid 1000) id E3C5B78FB76; Thu, 12 Dec 2013 17:08:06 +0100 (CET) From: Florent Fourcot To: netdev@vger.kernel.org Cc: sergei.shtylyov@cogentembedded.com, Florent Fourcot Subject: [PATCH v2] ipv6: fix incorrect type in declaration Date: Thu, 12 Dec 2013 17:07:58 +0100 Message-Id: <1386864478-3879-1-git-send-email-florent.fourcot@enst-bretagne.fr> X-Mailer: git-send-email 1.8.5.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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) --- net/ipv6/ipv6_sockglue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index bc4d8a2..e6b6289 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); } }