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

[-- Attachment #1: Type: text/plain, Size: 3328 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: parisc-randconfig-m031-20210326 (attached as .config)
compiler: hppa-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=parisc 

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/parisc/kernel/asm-offsets.c:22:
   arch/parisc/kernel/asm-offsets.c: In function 'main':
>> arch/parisc/kernel/asm-offsets.c:45:50: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
      45 |  DEFINE(TASK_STATE, offsetof(struct task_struct, state));
         |                                                  ^~~~~
   include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
       6 |  asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
         |                                                              ^~~
   include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
         |                                ^~~~~~~~~~~~~~~~~~~
   arch/parisc/kernel/asm-offsets.c:45:21: note: in expansion of macro 'offsetof'
      45 |  DEFINE(TASK_STATE, offsetof(struct task_struct, state));
         |                     ^~~~~~~~
   make[2]: *** [scripts/Makefile.build:116: arch/parisc/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1235: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:215: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +45 arch/parisc/kernel/asm-offsets.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  41  
^1da177e4c3f41 Linus Torvalds 2005-04-16  42  int main(void)
^1da177e4c3f41 Linus Torvalds 2005-04-16  43  {
f7e4217b007d1f Roman Zippel   2007-05-09  44  	DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack));
^1da177e4c3f41 Linus Torvalds 2005-04-16 @45  	DEFINE(TASK_STATE, offsetof(struct task_struct, state));

:::::: The code at line 45 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.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: 20205 bytes --]

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

only message in thread, other threads:[~2021-03-27  2:06 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:06 [peterz-queue:sched/wip-state 6/6] arch/parisc/kernel/asm-offsets.c:45:50: 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.