]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Handle invalid typedef emitted by old GCC
authorAndrii Nakryiko <andriin@fb.com>
Fri, 11 Oct 2019 03:29:01 +0000 (20:29 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 11 Oct 2019 21:11:55 +0000 (23:11 +0200)
commitc09cc93694a56ab86d2937cd36cb8fa397776c9d
tree8ff553578ad3fd12d931273d5f24b72e2f9a5228
parent44141b9a6140e00c91473d2f4cc1d0a672817e49
libbpf: Handle invalid typedef emitted by old GCC

Old GCC versions are producing invalid typedef for __gnuc_va_list
pointing to void. Special-case this and emit valid:

typedef __builtin_va_list __gnuc_va_list;

Reported-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20191011032901.452042-1-andriin@fb.com
tools/lib/bpf/btf_dump.c