[1/5] tools build: add feature test for init_disassemble_info API changes
authorAndres Freund <andres@anarazel.de>
Sun, 3 Jul 2022 21:25:47 +0000 (14:25 -0700)
committerSalvatore Bonaccorso <carnil@debian.org>
Wed, 10 Aug 2022 18:11:48 +0000 (19:11 +0100)
commit3f8d50d807de820184c06f62853919c4e859b1d9
tree60fcf9ed74db609df6b68dd92c10e51a5f4a5134
parentfd98f5ca4484eeabdea2f5b34696ea3d2e575682
[1/5] tools build: add feature test for init_disassemble_info API changes

Origin: https://lore.kernel.org/lkml/20220703212551.1114923-2-andres@anarazel.de/

binutils changed the signature of init_disassemble_info(), which now causes
compilation failures for tools/{perf,bpf}, e.g. on debian unstable.
Relevant binutils commit:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=60a3da00bd5407f07

This commit adds a feature test to detect the new signature.  Subsequent
commits will use it to fix the build failures.

Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Sedat Dilek <sedat.dilek@gmail.com>
Cc: Quentin Monnet <quentin@isovalent.com>
Link: http://lore.kernel.org/lkml/20220622181918.ykrs5rsnmx3og4sv@alap3.anarazel.de
Signed-off-by: Andres Freund <andres@anarazel.de>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name tools-build-add-feature-test-for-init_disassemble_info-api-changes.patch
tools/build/Makefile.feature
tools/build/feature/Makefile
tools/build/feature/test-all.c
tools/build/feature/test-disassembler-init-styled.c [new file with mode: 0644]