OSDN Git Service

tools/bpf: fix test_btf for typedef func_proto case
authorYonghong Song <yhs@fb.com>
Wed, 30 Jan 2019 00:38:17 +0000 (16:38 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 30 Jan 2019 03:15:32 +0000 (19:15 -0800)
commit32b750b925040565bbeff1fe2f7510e3dc71ce2e
treef21966790bed9858ec536873dcb8e52634ba1de3
parent81f5c6f5db37bf2360b64c304b27b8f499b48367
tools/bpf: fix test_btf for typedef func_proto case

Fixed one test_btf raw test such that typedef func_proto
is permitted now.

Fixes: 78a2540e8945 ("tools/bpf: Add tests for BTF_KIND_FUNC_PROTO and BTF_KIND_FUNC")
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_btf.c