Re: [PATCH v2 2/3] powerpc: use NMI IPI for smp_send_stop
From: Nicholas Piggin <npiggin@gmail.com>
Date: 2017-10-31 07:43:29
On Tue, 24 Oct 2017 07:15:30 +0800 kbuild test robot [off-list ref] wrote:
Hi Nicholas, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.14-rc6 next-20171018] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Nicholas-Piggin/avoid-secondary-hold-spinloop-when-possible/20171023-173012 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next config: powerpc-iss476-smp_defconfig (attached as .config) compiler: powerpc-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=powerpc All errors (new ones prefixed by >>): arch/powerpc/kernel/smp.o: In function `smp_send_stop':quoted
quoted
arch/powerpc/kernel/smp.c:563: undefined reference to `smp_send_nmi_ipi'vim +563 arch/powerpc/kernel/smp.c 560 561 void smp_send_stop(void) 562 { > 563 smp_send_nmi_ipi(NMI_IPI_ALL_OTHERS, stop_this_cpu, 1000000); 564 } 565
Good catch, 0day. Thanks. Rather than have all architectures select NMI_IPI just for this, I think I'll make it depend on whether NMI_IPI was selected at all. Otherwise just keep using the normal smp_call_function(). Thanks, Nick