mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, x86@kernel.org
Subject: [tip:tmp.tmp2 67/364] include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack_canary'
Date: Mon, 14 Jun 2021 04:32:22 +0800	[thread overview]
Message-ID: <202106140419.4Y3Uan7W-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head:   adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 8be2345e62673b36bca907ae8de1da581cc69228 [67/364] sched: Move task_struct::stack_canary to per_task()
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-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/tip/tip.git/commit/?id=8be2345e62673b36bca907ae8de1da581cc69228
        git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
        git fetch --no-tags tip tmp.tmp2
        git checkout 8be2345e62673b36bca907ae8de1da581cc69228
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv 

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

         |                                                              ^~~
   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/riscv/kernel/asm-offsets.c:64:2: note: in expansion of macro 'OFFSET'
      64 |  OFFSET(TASK_THREAD_F26, task_struct, thread.fstate.f[26]);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:65:2: note: in expansion of macro 'OFFSET'
      65 |  OFFSET(TASK_THREAD_F27, task_struct, thread.fstate.f[27]);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:66:2: note: in expansion of macro 'OFFSET'
      66 |  OFFSET(TASK_THREAD_F28, task_struct, thread.fstate.f[28]);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:67:2: note: in expansion of macro 'OFFSET'
      67 |  OFFSET(TASK_THREAD_F29, task_struct, thread.fstate.f[29]);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:68:2: note: in expansion of macro 'OFFSET'
      68 |  OFFSET(TASK_THREAD_F30, task_struct, thread.fstate.f[30]);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:69:2: note: in expansion of macro 'OFFSET'
      69 |  OFFSET(TASK_THREAD_F31, task_struct, thread.fstate.f[31]);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:70:2: note: in expansion of macro 'OFFSET'
      70 |  OFFSET(TASK_THREAD_FCSR, task_struct, thread.fstate.fcsr);
         |  ^~~~~~
>> include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack_canary'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:72:2: note: in expansion of macro 'OFFSET'
      72 |  OFFSET(TSK_STACK_CANARY, task_struct, stack_canary);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:120:5: note: in expansion of macro 'offsetof'
     120 |     offsetof(struct task_struct, thread.ra)
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:121:5: note: in expansion of macro 'offsetof'
     121 |   - offsetof(struct task_struct, thread.ra)
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:124:5: note: in expansion of macro 'offsetof'
     124 |     offsetof(struct task_struct, thread.sp)
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:125:5: note: in expansion of macro 'offsetof'
     125 |   - offsetof(struct task_struct, thread.ra)
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:128:5: note: in expansion of macro 'offsetof'
     128 |     offsetof(struct task_struct, thread.s[0])
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:129:5: note: in expansion of macro 'offsetof'
     129 |   - offsetof(struct task_struct, thread.ra)
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:132:5: note: in expansion of macro 'offsetof'
     132 |     offsetof(struct task_struct, thread.s[1])
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
--
         |                                                              ^~~
   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/riscv/kernel/asm-offsets.c:64:2: note: in expansion of macro 'OFFSET'
      64 |  OFFSET(TASK_THREAD_F26, task_struct, thread.fstate.f[26]);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:65:2: note: in expansion of macro 'OFFSET'
      65 |  OFFSET(TASK_THREAD_F27, task_struct, thread.fstate.f[27]);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:66:2: note: in expansion of macro 'OFFSET'
      66 |  OFFSET(TASK_THREAD_F28, task_struct, thread.fstate.f[28]);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:67:2: note: in expansion of macro 'OFFSET'
      67 |  OFFSET(TASK_THREAD_F29, task_struct, thread.fstate.f[29]);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:68:2: note: in expansion of macro 'OFFSET'
      68 |  OFFSET(TASK_THREAD_F30, task_struct, thread.fstate.f[30]);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:69:2: note: in expansion of macro 'OFFSET'
      69 |  OFFSET(TASK_THREAD_F31, task_struct, thread.fstate.f[31]);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:70:2: note: in expansion of macro 'OFFSET'
      70 |  OFFSET(TASK_THREAD_FCSR, task_struct, thread.fstate.fcsr);
         |  ^~~~~~
>> include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack_canary'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:72:2: note: in expansion of macro 'OFFSET'
      72 |  OFFSET(TSK_STACK_CANARY, task_struct, stack_canary);
         |  ^~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:120:5: note: in expansion of macro 'offsetof'
     120 |     offsetof(struct task_struct, thread.ra)
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:121:5: note: in expansion of macro 'offsetof'
     121 |   - offsetof(struct task_struct, thread.ra)
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:124:5: note: in expansion of macro 'offsetof'
     124 |     offsetof(struct task_struct, thread.sp)
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:125:5: note: in expansion of macro 'offsetof'
     125 |   - offsetof(struct task_struct, thread.ra)
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:128:5: note: in expansion of macro 'offsetof'
     128 |     offsetof(struct task_struct, thread.s[0])
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:129:5: note: in expansion of macro 'offsetof'
     129 |   - offsetof(struct task_struct, thread.ra)
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                   ^~~~~~~~~~~~~~~~~~
   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/riscv/kernel/asm-offsets.c:132:5: note: in expansion of macro 'offsetof'
     132 |     offsetof(struct task_struct, thread.s[1])
         |     ^~~~~~~~
   include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread'
     140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
..


vim +140 include/linux/compiler_types.h

71391bdd2e9aab Xiaozhou Liu 2018-12-14  139  
71391bdd2e9aab Xiaozhou Liu 2018-12-14 @140  #define __compiler_offsetof(a, b)	__builtin_offsetof(a, b)
71391bdd2e9aab Xiaozhou Liu 2018-12-14  141  

:::::: The code at line 140 was first introduced by commit
:::::: 71391bdd2e9aab188f86bf1ecd9b232531ec7eea include/linux/compiler_types.h: don't pollute userspace with macro definitions

:::::: TO: Xiaozhou Liu <liuxiaozhou@bytedance.com>
:::::: CC: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>

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

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

                 reply	other threads:[~2021-06-13 20:33 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=202106140419.4Y3Uan7W-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=x86@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®