[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108050205.qVr1ug3J-lkp@intel.com>
Date: Thu, 5 Aug 2021 02:45:12 +0800
From: kernel test robot <lkp@...el.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [tglx-devel:rtmutex 3/65] include/linux/sched.h:134:3: error:
invalid preprocessing directive #debug_normal_state_change
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git rtmutex
head: 91fb95023a1645acf99daa67e51cc1f5e2bc8b8e
commit: c4c28f993851857356b76b7471f74cd154d58b84 [3/65] sched: Reorganize current::__state helpers
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=c4c28f993851857356b76b7471f74cd154d58b84
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 c4c28f993851857356b76b7471f74cd154d58b84
# 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@...el.com>
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) \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
--
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) \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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 +134 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
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (26283 bytes)
Powered by blists - more mailing lists