From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [tglx-devel:rtmutex 3/65] include/linux/sched.h:134:3: error: invalid preprocessing directive #debug_normal_state_change
Date: Thu, 5 Aug 2021 02:45:12 +0800 [thread overview]
Message-ID: <202108050205.qVr1ug3J-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3351 bytes --]
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@intel.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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26283 bytes --]
reply other threads:[~2021-08-04 18:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202108050205.qVr1ug3J-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®