[tip:WIP.sched/core 74/154] arch/sh/kernel/cpu/sh4/fpu.c:428:2: error: implicit declaration of function 'force_sig'

From: kbuild test robot
Date: Sat Feb 11 2017 - 20:28:56 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
head: 12372f63e2728a509817b56878cd6633d92053b3
commit: 3cff44a935eba893a68a1bcb3ee7e90cbbbabbb7 [74/154] sched/headers: Move task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h>
config: sh-sh2007_defconfig (attached as .config)
compiler: sh4-linux-gnu-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 3cff44a935eba893a68a1bcb3ee7e90cbbbabbb7
# save the attached .config to linux build tree
make.cross ARCH=sh

All errors (new ones prefixed by >>):

arch/sh/kernel/cpu/sh4/fpu.c: In function 'fpu_error_trap_handler':
>> arch/sh/kernel/cpu/sh4/fpu.c:428:2: error: implicit declaration of function 'force_sig' [-Werror=implicit-function-declaration]
force_sig(SIGFPE, tsk);
^~~~~~~~~
cc1: some warnings being treated as errors

vim +/force_sig +428 arch/sh/kernel/cpu/sh4/fpu.c

0ea820cf Paul Mundt 2010-01-13 422 if ((((tsk->thread.xstate->hardfpu.fpscr & FPSCR_ENABLE_MASK) >> 7) &
c8c0a1ab Stuart Menefy 2007-11-30 423 (fpu_exception_flags >> 2)) == 0) {
^1da177e Linus Torvalds 2005-04-16 424 return;
c8c0a1ab Stuart Menefy 2007-11-30 425 }
c8c0a1ab Stuart Menefy 2007-11-30 426 }
^1da177e Linus Torvalds 2005-04-16 427
^1da177e Linus Torvalds 2005-04-16 @428 force_sig(SIGFPE, tsk);
^1da177e Linus Torvalds 2005-04-16 429 }

:::::: The code at line 428 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