[tglx-devel:rtmutex 4/65] include/linux/sched.h:146:3: error: invalid preprocessing directive #debug_rtlock_wait_set_state
From: kernel test robot
Date: Wed Aug 04 2021 - 15:07:02 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git rtmutex
head: 91fb95023a1645acf99daa67e51cc1f5e2bc8b8e
commit: fd04841004acafc540386a9d437f5a713b72bd98 [4/65] sched: Prepare for RT sleeping spin/rwlocks
config: nds32-randconfig-r036-20210804 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 10.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/tglx/devel.git/commit/?id=fd04841004acafc540386a9d437f5a713b72bd98
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel rtmutex
git checkout fd04841004acafc540386a9d437f5a713b72bd98
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=nds32 prepare
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 arch/nds32/kernel/asm-offsets.c:4:
include/linux/sched.h:134:3: error: invalid preprocessing directive #debug_normal_state_change
134 | # debug_normal_state_change(state_value) \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/sched.h:140:3: error: invalid preprocessing directive #debug_special_state_change
140 | # debug_special_state_change(state_value) \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/sched.h:146:3: error: invalid preprocessing directive #debug_rtlock_wait_set_state
146 | # debug_rtlock_wait_set_state() \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/sched.h:152:3: error: invalid preprocessing directive #debug_rtlock_wait_restore_state
152 | # debug_rtlock_wait_restore_state() \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from arch/nds32/kernel/asm-offsets.c:4:
include/linux/sched.h:134:3: error: invalid preprocessing directive #debug_normal_state_change
134 | # debug_normal_state_change(state_value) \
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/sched.h:140:3: error: invalid preprocessing directive #debug_special_state_change
140 | # debug_special_state_change(state_value) \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/sched.h:146:3: error: invalid preprocessing directive #debug_rtlock_wait_set_state
146 | # debug_rtlock_wait_set_state() \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/sched.h:152:3: error: invalid preprocessing directive #debug_rtlock_wait_restore_state
152 | # debug_rtlock_wait_restore_state() \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:117: arch/nds32/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1213: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +146 include/linux/sched.h
125
126 /*
127 * Special states are those that do not use the normal wait-loop pattern. See
128 * the comment with set_special_state().
129 */
130 #define is_special_task_state(state) \
131 ((state) & (__TASK_STOPPED | __TASK_TRACED | TASK_PARKED | TASK_DEAD))
132
133 #ifdef CONFIG_DEBUG_ATOMIC_SLEEP
134 # debug_normal_state_change(state_value) \
135 do { \
136 WARN_ON_ONCE(is_special_task_state(state_value)); \
137 current->task_state_change = _THIS_IP_; \
138 } while (0)
139
140 # debug_special_state_change(state_value) \
141 do { \
142 WARN_ON_ONCE(!is_special_task_state(state_value)); \
143 current->task_state_change = _THIS_IP_; \
144 } while (0)
145
> 146 # debug_rtlock_wait_set_state() \
147 do { \
148 current->saved_state_change = current->task_state_change;\
149 current->task_state_change = _THIS_IP_; \
150 } while (0)
151
> 152 # debug_rtlock_wait_restore_state() \
153 do { \
154 current->task_state_change = current->saved_state_change;\
155 } while (0)
156 #else
157 # debug_normal_state_change(cond) do { } while (0)
158 # debug_special_state_change(cond) do { } while (0)
159 # debug_rtlock_wait_set_state() do { } while (0)
160 # debug_rtlock_wait_restore_state() do { } while (0)
161 #endif
162
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip