]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/net: fix warnings on reuseaddr_ports_exhausted
authorCarlos Llamas <cmllamas@google.com>
Tue, 16 Mar 2021 01:04:29 +0000 (01:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2021 22:01:21 +0000 (15:01 -0700)
commit81f711d67a973bf8a6db9556faf299b4074d536e
tree97ca224184c4869c4ae7bbc7fb412096f3f3172d
parent13832ae2755395b2585500c85b64f5109a44227e
selftests/net: fix warnings on reuseaddr_ports_exhausted

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>
tools/testing/selftests/net/reuseaddr_ports_exhausted.c