lib/test_bpf.c: don't use gcc union shortcut
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 22 May 2014 17:16:46 +0000 (10:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 May 2014 19:09:09 +0000 (15:09 -0400)
commitece80490e2c1cefda018b2e5b96d4f39083d9096
tree05d399547dee0945172cb887b185edeb6bc8557a
parented616689a3d95eb6c9bdbb1ef74b0f50cbdf276a
lib/test_bpf.c: don't use gcc union shortcut

Older gcc's (mine is gcc-4.4.4) make a mess of this.

lib/test_bpf.c:74: error: unknown field 'insns' specified in initializer
lib/test_bpf.c:75: warning: missing braces around initializer
lib/test_bpf.c:75: warning: (near initialization for 'tests[0].<anonymous>.insns[0]')
lib/test_bpf.c:76: error: extra brace group at end of initializer
lib/test_bpf.c:76: error: (near initialization for 'tests[0].<anonymous>')
lib/test_bpf.c:76: warning: excess elements in union initializer
lib/test_bpf.c:76: warning: (near initialization for 'tests[0].<anonymous>')
lib/test_bpf.c:77: error: extra brace group at end of initializer

Cc: Alexei Starovoitov <ast@plumgrid.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c