From: David Miller Subject: Re: [patch 1/1] net/ipv6/route.c: work around gcc-4.4.4 anon union initializer issue Date: Mon, 15 Jan 2018 14:28:50 -0500 (EST) Message-ID: <20180115.142850.836273000892159402.davem@davemloft.net> References: <5a595053.ZGoOkSYptXloCWEN%akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, dsahern@gmail.com, idosch@mellanox.com To: akpm@linux-foundation.org Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:51780 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798AbeAOT2w (ORCPT ); Mon, 15 Jan 2018 14:28:52 -0500 In-Reply-To: <5a595053.ZGoOkSYptXloCWEN%akpm@linux-foundation.org> Sender: netdev-owner@vger.kernel.org List-ID: From: akpm@linux-foundation.org Date: Fri, 12 Jan 2018 16:18:27 -0800 > From: Andrew Morton > Subject: net/ipv6/route.c: work around gcc-4.4.4 anon union initializer issue > > gcc-4.4.4 has problems with initializers of anonymous union fields. > > net/ipv6/route.c: In function 'rt6_sync_up': > net/ipv6/route.c:3586: error: unknown field 'nh_flags' specified in initializer > net/ipv6/route.c:3586: warning: missing braces around initializer > net/ipv6/route.c:3586: warning: (near initialization for 'arg.') > net/ipv6/route.c: In function 'rt6_sync_down_dev': > net/ipv6/route.c:3695: error: unknown field 'event' specified in initializer > net/ipv6/route.c:3695: warning: missing braces around initializer > net/ipv6/route.c:3695: warning: (near initialization for 'arg.') > > Fixes: 2127d95aef6c ("ipv6: Clear nexthop flags upon netdev up") > Cc: Ido Schimmel > Cc: David Ahern > Cc: David S. Miller > Signed-off-by: Andrew Morton Ido sent me a patch which fixes this and it's in my net-next tree now. Thank you.