[linux-rt-devel:linux-5.13.y-rt-testing 207/227] include/linux/entry-common.h:62:3: error: '_TIF_NEED_RESCHED_MASK' undeclared; did you mean 'TIF_NEED_RESCHED'?
From: kernel test robot
Date: Mon Jul 12 2021 - 14:54:02 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.13.y-rt-testing
head: cdfc6ae55ef52147859af8c8a9f82c4858eed749
commit: f2f9e496208c584356e84e720a3dfd99970ee5e9 [207/227] x86: Support for lazy preemption
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-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/rt/linux-rt-devel.git/commit/?id=f2f9e496208c584356e84e720a3dfd99970ee5e9
git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags linux-rt-devel linux-5.13.y-rt-testing
git checkout f2f9e496208c584356e84e720a3dfd99970ee5e9
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
In file included from kernel/entry/common.c:4:
kernel/entry/common.c: In function 'exit_to_user_mode_loop':
>> include/linux/entry-common.h:62:3: error: '_TIF_NEED_RESCHED_MASK' undeclared (first use in this function); did you mean 'TIF_NEED_RESCHED'?
62 | _TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/entry/common.c:158:19: note: in expansion of macro 'EXIT_TO_USER_MODE_WORK'
158 | while (ti_work & EXIT_TO_USER_MODE_WORK) {
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/entry-common.h:62:3: note: each undeclared identifier is reported only once for each function it appears in
62 | _TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/entry/common.c:158:19: note: in expansion of macro 'EXIT_TO_USER_MODE_WORK'
158 | while (ti_work & EXIT_TO_USER_MODE_WORK) {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from arch/s390/include/asm/ptrace.h:10,
from arch/s390/include/asm/lowcore.h:13,
from arch/s390/include/asm/current.h:13,
from include/linux/sched.h:12,
from include/linux/context_tracking.h:5,
from kernel/entry/common.c:3:
kernel/entry/common.c: In function 'exit_to_user_mode_prepare':
>> include/linux/entry-common.h:62:3: error: '_TIF_NEED_RESCHED_MASK' undeclared (first use in this function); did you mean 'TIF_NEED_RESCHED'?
62 | _TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
kernel/entry/common.c:216:25: note: in expansion of macro 'EXIT_TO_USER_MODE_WORK'
216 | if (unlikely(ti_work & EXIT_TO_USER_MODE_WORK))
| ^~~~~~~~~~~~~~~~~~~~~~
vim +62 include/linux/entry-common.h
59
60 #define EXIT_TO_USER_MODE_WORK \
61 (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME | _TIF_UPROBE | \
> 62 _TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
63 ARCH_EXIT_TO_USER_MODE_WORK)
64
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip