[tip:WIP.sched/core 101/151] arch/mips/sgi-ip32/ip32-berr.c:30:2: error: implicit declaration of function 'force_sig'

From: kbuild test robot
Date: Sun Feb 05 2017 - 15:26:14 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
head: b992c433b3544d3afd09c4ea603768e6486a3e29
commit: b1f67840abd11c21066791dab0ba74aac94fd178 [101/151] sched/headers, signals: Separate out task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h>
config: mips-ip32_defconfig (attached as .config)
compiler: mips64-linux-gnuabi64-gcc (Debian 6.1.1-9) 6.1.1 20160705
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
git checkout b1f67840abd11c21066791dab0ba74aac94fd178
# save the attached .config to linux build tree
make.cross ARCH=mips

All errors (new ones prefixed by >>):

arch/mips/sgi-ip32/ip32-berr.c: In function 'ip32_be_handler':
>> arch/mips/sgi-ip32/ip32-berr.c:30:2: error: implicit declaration of function 'force_sig' [-Werror=implicit-function-declaration]
force_sig(SIGBUS, current);
^~~~~~~~~
cc1: some warnings being treated as errors
--
arch/mips/sgi-ip32/ip32-reset.c: In function 'ip32_prepare_poweroff':
>> arch/mips/sgi-ip32/ip32-reset.c:95:23: error: implicit declaration of function 'kill_cad_pid' [-Werror=implicit-function-declaration]
if (shutting_down || kill_cad_pid(SIGINT, 1)) {
^~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/force_sig +30 arch/mips/sgi-ip32/ip32-berr.c

^1da177e Linus Torvalds 2005-04-16 24 return MIPS_BE_FIXUP;
^1da177e Linus Torvalds 2005-04-16 25
^1da177e Linus Torvalds 2005-04-16 26 printk("Got %cbe at 0x%lx\n", data ? 'd' : 'i', regs->cp0_epc);
^1da177e Linus Torvalds 2005-04-16 27 show_regs(regs);
^1da177e Linus Torvalds 2005-04-16 28 dump_tlb_all();
^1da177e Linus Torvalds 2005-04-16 29 while(1);
^1da177e Linus Torvalds 2005-04-16 @30 force_sig(SIGBUS, current);
^1da177e Linus Torvalds 2005-04-16 31 }
^1da177e Linus Torvalds 2005-04-16 32
^1da177e Linus Torvalds 2005-04-16 33 void __init ip32_be_init(void)

:::::: The code at line 30 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip