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

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

Hi Peter,

First bad commit (maybe != root cause):

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

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/h8300/kernel/asm-offsets.c:17:
   arch/h8300/kernel/asm-offsets.c: In function 'main':
>> arch/h8300/kernel/asm-offsets.c:24:34: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
      24 |  OFFSET(TASK_STATE, 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)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/h8300/kernel/asm-offsets.c:24:2: note: in expansion of macro 'OFFSET'
      24 |  OFFSET(TASK_STATE, task_struct, state);
         |  ^~~~~~
--
   In file included from arch/h8300/kernel/asm-offsets.c:17:
   arch/h8300/kernel/asm-offsets.c: In function 'main':
>> arch/h8300/kernel/asm-offsets.c:24:34: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
      24 |  OFFSET(TASK_STATE, 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)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/h8300/kernel/asm-offsets.c:24:2: note: in expansion of macro 'OFFSET'
      24 |  OFFSET(TASK_STATE, task_struct, state);
         |  ^~~~~~
   make[2]: *** [scripts/Makefile.build:117: arch/h8300/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1232: prepare0] Error 2
   make[1]: Target 'modules_prepare' not remade because of errors.
   make: *** [Makefile:215: __sub-make] Error 2
   make: Target 'modules_prepare' not remade because of errors.
--
   In file included from arch/h8300/kernel/asm-offsets.c:17:
   arch/h8300/kernel/asm-offsets.c: In function 'main':
>> arch/h8300/kernel/asm-offsets.c:24:34: error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
      24 |  OFFSET(TASK_STATE, 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)
         |                                ^~~~~~~~~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: in expansion of macro 'offsetof'
      11 |  DEFINE(sym, offsetof(struct str, mem))
         |              ^~~~~~~~
   arch/h8300/kernel/asm-offsets.c:24:2: note: in expansion of macro 'OFFSET'
      24 |  OFFSET(TASK_STATE, task_struct, state);
         |  ^~~~~~
   make[2]: *** [scripts/Makefile.build:117: arch/h8300/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1232: 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 +24 arch/h8300/kernel/asm-offsets.c

4e0c20981ec16d1 Yoshinori Sato 2015-01-28 @17  #include <linux/kbuild.h>
4e0c20981ec16d1 Yoshinori Sato 2015-01-28  18  #include <asm/irq.h>
4e0c20981ec16d1 Yoshinori Sato 2015-01-28  19  #include <asm/ptrace.h>
4e0c20981ec16d1 Yoshinori Sato 2015-01-28  20  
4e0c20981ec16d1 Yoshinori Sato 2015-01-28  21  int main(void)
4e0c20981ec16d1 Yoshinori Sato 2015-01-28  22  {
4e0c20981ec16d1 Yoshinori Sato 2015-01-28  23  	/* offsets into the task struct */
4e0c20981ec16d1 Yoshinori Sato 2015-01-28 @24  	OFFSET(TASK_STATE, task_struct, state);

:::::: The code at line 24 was first introduced by commit
:::::: 4e0c20981ec16d13cfebaad7ed6245a472df2ed0 h8300: miscellaneous functions

:::::: TO: Yoshinori Sato <ysato@users.sourceforge.jp>
:::::: CC: Yoshinori Sato <ysato@users.sourceforge.jp>

---
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: 32062 bytes --]

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

only message in thread, other threads:[~2021-06-02 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-02 15:47 [peterz-queue:sched/state 6/6] arch/h8300/kernel/asm-offsets.c:24:34: 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.