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

[-- Attachment #1: Type: text/plain, Size: 4792 bytes --]

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@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)    \
         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> 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@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 19:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-04 19:06 [tglx-devel:rtmutex 4/65] include/linux/sched.h:146:3: error: invalid preprocessing directive #debug_rtlock_wait_set_state 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).