All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:x86/static_call 11/18] check.c:524:32: error: passing argument 1 of 'elf_rebuild_reloc_section' from incompatible pointer type
@ 2020-06-16 17:51 kernel test robot
  2020-06-16 18:51 ` Peter Zijlstra
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2020-06-16 17:51 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2507 bytes --]

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@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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 49254 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [peterz-queue:x86/static_call 11/18] check.c:524:32: error: passing argument 1 of 'elf_rebuild_reloc_section' from incompatible pointer type
  2020-06-16 17:51 [peterz-queue:x86/static_call 11/18] check.c:524:32: error: passing argument 1 of 'elf_rebuild_reloc_section' from incompatible pointer type kernel test robot
@ 2020-06-16 18:51 ` Peter Zijlstra
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Zijlstra @ 2020-06-16 18:51 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1103 bytes --]

On Wed, Jun 17, 2020 at 01:51:40AM +0800, kernel test robot wrote:
> 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@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))

Argh, rebase hell, I'll go fix.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-16 18:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-16 17:51 [peterz-queue:x86/static_call 11/18] check.c:524:32: error: passing argument 1 of 'elf_rebuild_reloc_section' from incompatible pointer type kernel test robot
2020-06-16 18:51 ` Peter Zijlstra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.