tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/static_call
head: 9d17d094385c304e7cc17d2a28d727ee58fa15a7
commit: ff27410577751bfe88e2ec99fbf53b44a10b2832 [11/18] x86/static_call: Add inline
static call implementation for x86-64
config: x86_64-rhel-7.6 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout ff27410577751bfe88e2ec99fbf53b44a10b2832
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
check.c: In function 'create_static_call_sections':
> check.c:524:32: error: passing argument 1 of
'elf_rebuild_reloc_section' from incompatible pointer type
[-Werror=incompatible-pointer-types]
524 | if
(elf_rebuild_reloc_section(reloc_sec))
| ^~~~~~~~~
| |
| struct section *
In file included from objtool.h:13,
from arch.h:11,
from check.c:11:
elf.h:143:43: note: expected 'struct elf *' but argument is of type 'struct
section *'
143 | int elf_rebuild_reloc_section(struct elf *elf, struct section *sec);
| ~~~~~~~~~~~~^~~
> check.c:524:6: error: too few arguments to function
'elf_rebuild_reloc_section'
524 | if
(elf_rebuild_reloc_section(reloc_sec))
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from objtool.h:13,
from arch.h:11,
from check.c:11:
elf.h:143:5: note: declared here
143 | int elf_rebuild_reloc_section(struct elf *elf, struct section *sec);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
mv: cannot stat 'tools/objtool/.check.o.tmp': No such file or directory
make[4]: *** [tools/build/Makefile.build:96: tools/objtool/check.o] Error 1
make[4]: Target '__build' not remade because of errors.
make[3]: *** [Makefile:64: tools/objtool/objtool-in.o] Error 2
make[3]: Target 'all' not remade because of errors.
make[2]: *** [Makefile:68: objtool] Error 2
make[1]: *** [Makefile:1866: tools/objtool] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org