linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arch/ia64/kernel/elfcore.c:22: undefined reference to `dump_emit'
@ 2020-07-10 23:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-10 23:02 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: kbuild-all, linux-kernel, Alex Deucher

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

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@intel.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@jp.fujitsu.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-10 23:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-10 23:02 arch/ia64/kernel/elfcore.c:22: undefined reference to `dump_emit' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).