• A
    lib/test_bpf.c: don't use gcc union shortcut · ece80490
    Andrew Morton 提交于
    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: NAndrew Morton <akpm@linux-foundation.org>
    Acked-by: NAlexei Starovoitov <ast@plumgrid.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    ece80490
test_bpf.c 41.6 KB