[tip:WIP.sched/core 101/114] arch/sh/kernel/cpu/sh2a/fpu.c:574:2: error: implicit declaration of function 'force_sig'

From: kbuild test robot
Date: Thu Feb 02 2017 - 08:31:10 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
head: 6ddb6fab35cf50127c3c4dc9d5e15da4258a86c5
commit: 397fbcb564288fb6d39400ae1d2f3363ba19c501 [101/114] sched/headers, signals: Separate out task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h>
config: sh-rsk7269_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 397fbcb564288fb6d39400ae1d2f3363ba19c501
# save the attached .config to linux build tree
make.cross ARCH=sh

All errors (new ones prefixed by >>):

arch/sh/kernel/cpu/sh2a/fpu.c: In function 'fpu_error_trap_handler':
>> arch/sh/kernel/cpu/sh2a/fpu.c:574: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 +574 arch/sh/kernel/cpu/sh2a/fpu.c

74d99a5e Paul Mundt 2007-11-26 568 grab_fpu(regs);
74d99a5e Paul Mundt 2007-11-26 569 restore_fpu(tsk);
d3ea9fa0 Stuart Menefy 2009-09-25 570 task_thread_info(tsk)->status |= TS_USEDFPU;
74d99a5e Paul Mundt 2007-11-26 571 return;
74d99a5e Paul Mundt 2007-11-26 572 }
74d99a5e Paul Mundt 2007-11-26 573
74d99a5e Paul Mundt 2007-11-26 @574 force_sig(SIGFPE, tsk);
74d99a5e Paul Mundt 2007-11-26 575 }

:::::: The code at line 574 was first introduced by commit
:::::: 74d99a5e262229ee865f6f68528d10b82471ead6 sh: SH-2A FPU support.

:::::: TO: Paul Mundt <lethal@xxxxxxxxxxxx>
:::::: CC: Paul Mundt <lethal@xxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip