[linux-next:master 13119/14891] arch/powerpc/platforms/pseries/hotplug-memory.c:615: undefined reference to `of_drconf_to_nid_single'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f2fb1afc57304f9dd68c20a08270e287470af2eb
commit: 72cdd117c449896c707fc6cfe5b90978160697d0 [13119/14891] pseries/hotplug-memory: hot-add: skip redundant LMB lookup
config: powerpc64-randconfig-r014-20201014 (attached as .config)
compiler: powerpc64le-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=72cdd117c449896c707fc6cfe5b90978160697d0
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 72cdd117c449896c707fc6cfe5b90978160697d0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_clock.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/ftrace.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/ring_buffer.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/ring_buffer_benchmark.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_output.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_seq.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_stat.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_printk.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/tracing_map.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_sched_switch.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_functions.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_preemptirq.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_irqsoff.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_hwlat.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_nop.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_stack.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_branch.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/blktrace.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_events.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_export.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_events_filter.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_events_trigger.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_events_inject.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_events_synth.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_events_hist.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/power-traces.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/rpm-traces.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_dynevent.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_benchmark.o' being placed in section `.ctors.65435'
   powerpc64le-linux-ld: arch/powerpc/platforms/pseries/hotplug-memory.o: in function `dlpar_add_lmb':
>> arch/powerpc/platforms/pseries/hotplug-memory.c:615: undefined reference to `of_drconf_to_nid_single'

vim +615 arch/powerpc/platforms/pseries/hotplug-memory.c

   597	
   598	static int dlpar_add_lmb(struct drmem_lmb *lmb)
   599	{
   600		unsigned long block_sz;
   601		int nid, rc;
   602	
   603		if (lmb->flags & DRCONF_MEM_ASSIGNED)
   604			return -EINVAL;
   605	
   606		rc = update_lmb_associativity_index(lmb);
   607		if (rc) {
   608			dlpar_release_drc(lmb->drc_index);
   609			return rc;
   610		}
   611	
   612		block_sz = memory_block_size_bytes();
   613	
   614		/* Find the node id for this LMB.  Fake one if necessary. */
 > 615		nid = of_drconf_to_nid_single(lmb);
   616		if (nid < 0 || !node_possible(nid))
   617			nid = first_online_node;
   618	
   619		/* Add the memory */
   620		rc = __add_memory(nid, lmb->base_addr, block_sz);
   621		if (rc) {
   622			invalidate_lmb_associativity_index(lmb);
   623			return rc;
   624		}
   625	
   626		rc = dlpar_online_lmb(lmb);
   627		if (rc) {
   628			__remove_memory(nid, lmb->base_addr, block_sz);
   629			invalidate_lmb_associativity_index(lmb);
   630		} else {
   631			lmb->flags |= DRCONF_MEM_ASSIGNED;
   632		}
   633	
   634		return rc;
   635	}
   636	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux