All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:sched/wip-state 6/6] arch/s390/kernel/process.c:183:31: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
@ 2021-03-27  2:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-27  2:23 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/wip-state
head:   2cf3c94315f5889827d115245ec693bd4a15fa8e
commit: 2cf3c94315f5889827d115245ec693bd4a15fa8e [6/6] sched: Change task_struct::state
config: s390-randconfig-r011-20210326 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.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/peterz/queue.git/commit/?id=2cf3c94315f5889827d115245ec693bd4a15fa8e
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/wip-state
        git checkout 2cf3c94315f5889827d115245ec693bd4a15fa8e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390 

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 >>):

   arch/s390/kernel/process.c: In function 'get_wchan':
>> arch/s390/kernel/process.c:183:31: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
     183 |  if (!p || p == current || p->state == TASK_RUNNING || !task_stack_page(p))
         |                               ^~~~~
         |                               __state
--
   arch/s390/mm/fault.c: In function 'pfault_interrupt':
>> arch/s390/mm/fault.c:705:13: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
     705 |    if (tsk->state == TASK_RUNNING)
         |             ^~~~~
         |             __state


vim +183 arch/s390/kernel/process.c

03ff9a235a0602 Martin Schwidefsky 2007-04-27  177  
^1da177e4c3f41 Linus Torvalds     2005-04-16  178  unsigned long get_wchan(struct task_struct *p)
^1da177e4c3f41 Linus Torvalds     2005-04-16  179  {
6756dd9b890fe5 Vasily Gorbik      2019-10-28  180  	struct unwind_state state;
6756dd9b890fe5 Vasily Gorbik      2019-10-28  181  	unsigned long ip = 0;
^1da177e4c3f41 Linus Torvalds     2005-04-16  182  
30af7120fe6cfa Al Viro            2006-01-12 @183  	if (!p || p == current || p->state == TASK_RUNNING || !task_stack_page(p))
^1da177e4c3f41 Linus Torvalds     2005-04-16  184  		return 0;
8769f610fe6d47 Vasily Gorbik      2019-08-13  185  
8769f610fe6d47 Vasily Gorbik      2019-08-13  186  	if (!try_get_task_stack(p))
8769f610fe6d47 Vasily Gorbik      2019-08-13  187  		return 0;
8769f610fe6d47 Vasily Gorbik      2019-08-13  188  
6756dd9b890fe5 Vasily Gorbik      2019-10-28  189  	unwind_for_each_frame(&state, p, NULL, 0) {
6756dd9b890fe5 Vasily Gorbik      2019-10-28  190  		if (state.stack_info.type != STACK_TYPE_TASK) {
6756dd9b890fe5 Vasily Gorbik      2019-10-28  191  			ip = 0;
6756dd9b890fe5 Vasily Gorbik      2019-10-28  192  			break;
8769f610fe6d47 Vasily Gorbik      2019-08-13  193  		}
6756dd9b890fe5 Vasily Gorbik      2019-10-28  194  
6756dd9b890fe5 Vasily Gorbik      2019-10-28  195  		ip = unwind_get_return_address(&state);
6756dd9b890fe5 Vasily Gorbik      2019-10-28  196  		if (!ip)
6756dd9b890fe5 Vasily Gorbik      2019-10-28  197  			break;
6756dd9b890fe5 Vasily Gorbik      2019-10-28  198  
6756dd9b890fe5 Vasily Gorbik      2019-10-28  199  		if (!in_sched_functions(ip))
6756dd9b890fe5 Vasily Gorbik      2019-10-28  200  			break;
^1da177e4c3f41 Linus Torvalds     2005-04-16  201  	}
6756dd9b890fe5 Vasily Gorbik      2019-10-28  202  
8769f610fe6d47 Vasily Gorbik      2019-08-13  203  	put_task_stack(p);
6756dd9b890fe5 Vasily Gorbik      2019-10-28  204  	return ip;
^1da177e4c3f41 Linus Torvalds     2005-04-16  205  }
9887a1fcddef13 Heiko Carstens     2011-01-12  206  

:::::: The code at line 183 was first introduced by commit
:::::: 30af7120fe6cfa8cf9ccd0626474fa1cd6d2bd59 [PATCH] s390: task_stack_page()

:::::: TO: Al Viro <viro@ftp.linux.org.uk>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32956 bytes --]

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

only message in thread, other threads:[~2021-03-27  2:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-27  2:23 [peterz-queue:sched/wip-state 6/6] arch/s390/kernel/process.c:183:31: error: 'struct task_struct' has no member named 'state'; did you mean '__state'? kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.