tree:
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
tif-task_work
head: df10f6edc636642f9af3603a5161569ef342305d
commit: df10f6edc636642f9af3603a5161569ef342305d [30/30] kernel: remove checking for
TIF_NOTIFY_SIGNAL
config: arc-randconfig-r001-20201012 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/com...
git remote add block
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block tif-task_work
git checkout df10f6edc636642f9af3603a5161569ef342305d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:5,
from arch/arc/include/asm/bug.h:30,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from arch/arc/include/asm/current.h:20,
from include/linux/sched.h:12,
from arch/arc/kernel/asm-offsets.c:6:
include/linux/sched/signal.h: In function 'signal_pending':
> include/linux/sched/signal.h:368:39: error:
'TIF_NOTIFY_SIGNAL' undeclared (first use in this function)
368 | if
(unlikely(test_tsk_thread_flag(p, TIF_NOTIFY_SIGNAL)))
| ^~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/sched/signal.h:368:39: note: each undeclared identifier is reported only
once for each function it appears in
368 | if (unlikely(test_tsk_thread_flag(p, TIF_NOTIFY_SIGNAL)))
| ^~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
make[2]: *** [scripts/Makefile.build:117: arch/arc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1198: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/TIF_NOTIFY_SIGNAL +368 include/linux/sched/signal.h
2a1f062a4acf0be Ingo Molnar 2017-02-02 360
488427a823feb1c Jens Axboe 2020-10-01 361 static inline int signal_pending(struct
task_struct *p)
488427a823feb1c Jens Axboe 2020-10-01 362 {
b6d5da9ba8e31f7 Jens Axboe 2020-10-03 363 /*
b6d5da9ba8e31f7 Jens Axboe 2020-10-03 364 * TIF_NOTIFY_SIGNAL isn't really a
signal, but it requires the same
b6d5da9ba8e31f7 Jens Axboe 2020-10-03 365 * behavior in terms of ensuring that we
break out of wait loops
b6d5da9ba8e31f7 Jens Axboe 2020-10-03 366 * so that notify signal callbacks can be
processed.
b6d5da9ba8e31f7 Jens Axboe 2020-10-03 367 */
b6d5da9ba8e31f7 Jens Axboe 2020-10-03 @368 if (unlikely(test_tsk_thread_flag(p,
TIF_NOTIFY_SIGNAL)))
b6d5da9ba8e31f7 Jens Axboe 2020-10-03 369 return 1;
488427a823feb1c Jens Axboe 2020-10-01 370 return task_sigpending(p);
488427a823feb1c Jens Axboe 2020-10-01 371 }
488427a823feb1c Jens Axboe 2020-10-01 372
:::::: The code at line 368 was first introduced by commit
:::::: b6d5da9ba8e31f7b222172c1626cfd0f5d035083 kernel: add support for TIF_NOTIFY_SIGNAL
:::::: TO: Jens Axboe <axboe(a)kernel.dk>
:::::: CC: Jens Axboe <axboe(a)kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org