mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Alex Deucher <alexander.deucher@amd.com>
Subject: arch/ia64/kernel/elfcore.c:22: undefined reference to `dump_emit'
Date: Sat, 11 Jul 2020 07:02:07 +0800	[thread overview]
Message-ID: <202007110759.YlEfDk0v%lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2020-07-10 23:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202007110759.YlEfDk0v%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexander.deucher@amd.com \
    --cc=arnd@arndb.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®