]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Fix build with gcc-4.4.5
authorIdo Schimmel <idosch@mellanox.com>
Fri, 12 Jan 2018 20:07:36 +0000 (22:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jan 2018 19:28:05 +0000 (14:28 -0500)
commitee873faa7dbe354735299c6b4bfb82a97de87eb6
tree4d7c7d9377bdcb4775998559dfcb6b987cab5858
parentf8a70b8fe886c4a632b801c49165cceab0af4574
ipv6: Fix build with gcc-4.4.5

Emil reported the following compiler errors:

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.<anonymous>`)
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.<anonymous>`)

Problem is with the named initializers for the anonymous union members.
Fix this by adding curly braces around the initialization.

Fixes: eb33ad3d1cbe ("ipv6: Prepare to handle multiple netdev events")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Emil S Tantilov <emils.tantilov@gmail.com>
Tested-by: Emil S Tantilov <emils.tantilov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c