From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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'?
Date: Wed, 02 Jun 2021 23:47:58 +0800 [thread overview]
Message-ID: <202106022348.gK6MEdSb-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-06-02 15:47 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=202106022348.gK6MEdSb-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.