[tip:WIP.sched/core 120/122] drivers/i2c/busses/i2c-ibm_iic.c:438:17: error: implicit declaration of function 'signal_pending'

From: kbuild test robot
Date: Thu Feb 02 2017 - 18:57:20 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
head: a69a38e26e87ddbe993e33b55f693405cd62c76f
commit: 88d0fe4cbc5e74cda2764df63cb369f32746af54 [120/122] sched/headers: Move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h>
config: powerpc-ppc44x_defconfig (attached as .config)
compiler: powerpc-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 88d0fe4cbc5e74cda2764df63cb369f32746af54
# save the attached .config to linux build tree
make.cross ARCH=powerpc

All errors (new ones prefixed by >>):

In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/list.h:4,
from include/linux/module.h:9,
from drivers/i2c/busses/i2c-ibm_iic.c:34:
drivers/i2c/busses/i2c-ibm_iic.c: In function 'iic_wait_for_tc':
>> drivers/i2c/busses/i2c-ibm_iic.c:438:17: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration]
if (unlikely(signal_pending(current))){
^
include/linux/compiler.h:168:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
cc1: some warnings being treated as errors

vim +/signal_pending +438 drivers/i2c/busses/i2c-ibm_iic.c

^1da177e Linus Torvalds 2005-04-16 432 if (unlikely(time_after(jiffies, x))){
^1da177e Linus Torvalds 2005-04-16 433 DBG("%d: poll timeout\n", dev->idx);
^1da177e Linus Torvalds 2005-04-16 434 ret = -ETIMEDOUT;
^1da177e Linus Torvalds 2005-04-16 435 break;
^1da177e Linus Torvalds 2005-04-16 436 }
^1da177e Linus Torvalds 2005-04-16 437
^1da177e Linus Torvalds 2005-04-16 @438 if (unlikely(signal_pending(current))){
^1da177e Linus Torvalds 2005-04-16 439 DBG("%d: poll interrupted\n", dev->idx);
^1da177e Linus Torvalds 2005-04-16 440 ret = -ERESTARTSYS;
^1da177e Linus Torvalds 2005-04-16 441 break;

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