Re: [PATCH v4 17/19] MIPS: Make smp CMP, CPS and MT use the new generic IPI functions

From: kbuild test robot
Date: Wed Dec 09 2015 - 05:31:18 EST


Hi Qais,

[auto build test ERROR on tip/irq/core]
[also build test ERROR on v4.4-rc4 next-20151208]

url: https://github.com/0day-ci/linux/commits/Qais-Yousef/Implement-generic-IPI-support-mechanism/20151208-212743
config: mips-malta_defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=mips

All errors (new ones prefixed by >>):

arch/mips/kernel/smp.c: In function 'mips_smp_ipi_init':
>> arch/mips/kernel/smp.c:245:9: error: implicit declaration of function 'of_irq_find_parent' [-Werror=implicit-function-declaration]
node = of_irq_find_parent(of_root);
^
arch/mips/kernel/smp.c:245:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
node = of_irq_find_parent(of_root);
^
cc1: some warnings being treated as errors
--
arch/mips/kernel/smp-gic.c: In function 'gic_send_ipi_single':
>> arch/mips/kernel/smp-gic.c:34:10: error: implicit declaration of function 'plat_ipi_call_int_xlate' [-Werror=implicit-function-declaration]
intr = plat_ipi_call_int_xlate(cpu);
^
>> arch/mips/kernel/smp-gic.c:38:10: error: implicit declaration of function 'plat_ipi_resched_int_xlate' [-Werror=implicit-function-declaration]
intr = plat_ipi_resched_int_xlate(cpu);
^
>> arch/mips/kernel/smp-gic.c:45:2: error: implicit declaration of function 'gic_send_ipi' [-Werror=implicit-function-declaration]
gic_send_ipi(intr);
^
cc1: some warnings being treated as errors

vim +/plat_ipi_call_int_xlate +34 arch/mips/kernel/smp-gic.c

72e20142 Paul Burton 2014-01-15 28 smp_processor_id(), __func__, cpu, action, read_c0_status());
72e20142 Paul Burton 2014-01-15 29
72e20142 Paul Burton 2014-01-15 30 local_irq_save(flags);
72e20142 Paul Burton 2014-01-15 31
72e20142 Paul Burton 2014-01-15 32 switch (action) {
72e20142 Paul Burton 2014-01-15 33 case SMP_CALL_FUNCTION:
72e20142 Paul Burton 2014-01-15 @34 intr = plat_ipi_call_int_xlate(cpu);
72e20142 Paul Burton 2014-01-15 35 break;
72e20142 Paul Burton 2014-01-15 36
72e20142 Paul Burton 2014-01-15 37 case SMP_RESCHEDULE_YOURSELF:
72e20142 Paul Burton 2014-01-15 @38 intr = plat_ipi_resched_int_xlate(cpu);
72e20142 Paul Burton 2014-01-15 39 break;
72e20142 Paul Burton 2014-01-15 40
72e20142 Paul Burton 2014-01-15 41 default:
72e20142 Paul Burton 2014-01-15 42 BUG();
72e20142 Paul Burton 2014-01-15 43 }
72e20142 Paul Burton 2014-01-15 44
72e20142 Paul Burton 2014-01-15 @45 gic_send_ipi(intr);
d0508944 Paul Burton 2014-04-14 46
d0508944 Paul Burton 2014-04-14 47 if (mips_cpc_present() && (core != current_cpu_data.core)) {
d0508944 Paul Burton 2014-04-14 48 while (!cpumask_test_cpu(cpu, &cpu_coherent_mask)) {

:::::: The code at line 34 was first introduced by commit
:::::: 72e20142b2bf4cf1c3071e6cf49d01f55f2e1e53 MIPS: Move GIC IPI functions out of smp-cmp.c

:::::: TO: Paul Burton <paul.burton@xxxxxxxxxx>
:::::: CC: Ralf Baechle <ralf@xxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data