[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202007110759.YlEfDk0v%lkp@intel.com>
Date: Sat, 11 Jul 2020 07:02:07 +0800
From: kernel test robot <lkp@...el.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Alex Deucher <alexander.deucher@....com>
Subject: arch/ia64/kernel/elfcore.c:22: undefined reference to `dump_emit'
Hi Arnd,
It's probably a bug fix that unveils the link errors.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a581387e415bbb0085e7e67906c8f4a99746590e
commit: ec3e5c0f0c2b716e768c0eee0fec30d572939ef5 drm/amdgpu: make pmu support optional, again
date: 9 months ago
config: ia64-randconfig-r025-20200710 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ec3e5c0f0c2b716e768c0eee0fec30d572939ef5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
ia64-linux-ld: arch/ia64/kernel/elfcore.o: in function `elf_core_write_extra_phdrs':
>> arch/ia64/kernel/elfcore.c:22: undefined reference to `dump_emit'
ia64-linux-ld: arch/ia64/kernel/elfcore.o: in function `elf_core_write_extra_data':
arch/ia64/kernel/elfcore.c:55: undefined reference to `dump_emit'
vim +22 arch/ia64/kernel/elfcore.c
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 14
506f21c556c747 Al Viro 2013-10-05 15 int elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset)
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 16 {
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 17 const struct elf_phdr *const gate_phdrs =
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 18 (const struct elf_phdr *) (GATE_ADDR + GATE_EHDR->e_phoff);
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 19 int i;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 20 Elf64_Off ofs = 0;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 21
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 @22 for (i = 0; i < GATE_EHDR->e_phnum; ++i) {
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 23 struct elf_phdr phdr = gate_phdrs[i];
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 24
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 25 if (phdr.p_type == PT_LOAD) {
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 26 phdr.p_memsz = PAGE_ALIGN(phdr.p_memsz);
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 27 phdr.p_filesz = phdr.p_memsz;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 28 if (ofs == 0) {
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 29 ofs = phdr.p_offset = offset;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 30 offset += phdr.p_filesz;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 31 } else {
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 32 phdr.p_offset = ofs;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 33 }
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 34 } else {
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 35 phdr.p_offset += ofs;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 36 }
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 37 phdr.p_paddr = 0; /* match other core phdrs */
506f21c556c747 Al Viro 2013-10-05 38 if (!dump_emit(cprm, &phdr, sizeof(phdr)))
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 39 return 0;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 40 }
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 41 return 1;
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 42 }
1fcccbac89f5bb Daisuke HATAYAMA 2010-03-05 43
:::::: The code at line 22 was first introduced by commit
:::::: 1fcccbac89f5bbc5e41aa72086960059fce372da elf coredump: replace ELF_CORE_EXTRA_* macros by functions
:::::: TO: Daisuke HATAYAMA <d.hatayama@...fujitsu.com>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (25611 bytes)
Powered by blists - more mailing lists