All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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'?
Date: Sat, 27 Mar 2021 10:06:15 +0800	[thread overview]
Message-ID: <202103271000.stnPyZqT-lkp@intel.com> (raw)

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

                 reply	other threads:[~2021-03-27  2:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202103271000.stnPyZqT-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.