linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [tglx-devel:rtmutex 3/65] include/linux/sched.h:134:3: error: invalid preprocessing directive #debug_normal_state_change
@ 2021-08-04 18:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-04 18:45 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: kbuild-all, linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-04 18:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-04 18:45 [tglx-devel:rtmutex 3/65] include/linux/sched.h:134:3: error: invalid preprocessing directive #debug_normal_state_change kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).