[tip:WIP.sched/core 74/154] arch/arm/nwfpe/fpmodule.c:54:21: error: implicit declaration of function 'send_sig'

From: kbuild test robot
Date: Sat Feb 11 2017 - 20:54:58 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: arm-h3600_defconfig (attached as .config)
compiler: arm-linux-gnueabi-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=arm

All errors (new ones prefixed by >>):

arch/arm/nwfpe/fpmodule.c: In function 'float_raise':
>> arch/arm/nwfpe/fpmodule.c:54:21: error: implicit declaration of function 'send_sig' [-Werror=implicit-function-declaration]
#define fp_send_sig send_sig
^
arch/arm/nwfpe/fpmodule.c:178:3: note: in expansion of macro 'fp_send_sig'
fp_send_sig(SIGFPE, current, 1);
^~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/send_sig +54 arch/arm/nwfpe/fpmodule.c

^1da177e Linus Torvalds 2005-04-16 48 #define NWFPE_BITS "double"
^1da177e Linus Torvalds 2005-04-16 49 #endif
^1da177e Linus Torvalds 2005-04-16 50
^1da177e Linus Torvalds 2005-04-16 51 #ifdef MODULE
^1da177e Linus Torvalds 2005-04-16 52 void fp_send_sig(unsigned long sig, struct task_struct *p, int priv);
^1da177e Linus Torvalds 2005-04-16 53 #else
^1da177e Linus Torvalds 2005-04-16 @54 #define fp_send_sig send_sig
^1da177e Linus Torvalds 2005-04-16 55 #define kern_fp_enter fp_enter
^1da177e Linus Torvalds 2005-04-16 56
^1da177e Linus Torvalds 2005-04-16 57 extern char fpe_type[];

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