selftests/net: fix warnings on reuseaddr_ports_exhausted
authorCarlos Llamas <cmllamas@google.com>
Tue, 16 Mar 2021 01:04:29 +0000 (01:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:32:00 +0000 (14:32 +0200)
commitaeff815e76ef520bbbd33ff6f9ff39c1f067e73d
treed82919424fed0fe4c790cdbf08113686f4bb39b7
parentbd63bd78d303fa1ddd9fb4a2e04f0018003c256c
selftests/net: fix warnings on reuseaddr_ports_exhausted

[ Upstream commit 81f711d67a973bf8a6db9556faf299b4074d536e ]

Fix multiple warnings seen with gcc 10.2.1:
reuseaddr_ports_exhausted.c:32:41: warning: missing braces around initializer [-Wmissing-braces]
   32 | struct reuse_opts unreusable_opts[12] = {
      |                                         ^
   33 |  {0, 0, 0, 0},
      |   {   } {   }

Fixes: 7f204a7de8b0 ("selftests: net: Add SO_REUSEADDR test to check if 4-tuples are fully utilized.")
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/reuseaddr_ports_exhausted.c