perf: util/annotate.c:1765:9: error: too few arguments to function 'init_disassemble_info'

From: Naresh Kamboju
Date: Mon Jul 18 2022 - 11:11:32 EST


with reference to other email thread on perf build failure on Linus mainline [1]

I see perf build failure today on Linus mainline tree with this error [2]
with gcc-11.

Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>

CC util/annotate.o
CC util/block-info.o
CC bench/mem-functions.o
MKDIR tests/
CC tests/parse-events.o
util/annotate.c: In function 'symbol__disassemble_bpf':
util/annotate.c:1765:9: error: too few arguments to function
'init_disassemble_info'
1765 | init_disassemble_info(&info, s,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from util/annotate.c:1718:
/usr/include/dis-asm.h:472:13: note: declared here
472 | extern void init_disassemble_info (struct disassemble_info
*dinfo, void *stream,
| ^~~~~~~~~~~~~~~~~~~~~
make[4]: *** [tools/build/Makefile.build:97: util/annotate.o] Error 1

Please refer link [3] for more details,

[1] https://lore.kernel.org/bpf/20220715191641.go6xbmhic3kafcsc@xxxxxxxxxxxxxxxxxx/T/
[2] https://builds.tuxbuild.com/2C7WeIEmOBAGYdKtUjtXB0Yn7Ts/
[3] https://qa-reports.linaro.org/lkft/linux-mainline-master/build/v5.19-rc6-448-gff6992735ade/testrun/10863106/suite/build/test/gcc-11-lkftconfig-perf/history/

Best regards
Naresh Kamboju


--
Linaro LKFT
https://lkft.linaro.org