lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202106140555.rHuM4Hnq-lkp@intel.com>
Date:   Mon, 14 Jun 2021 05:26:58 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org, x86@...nel.org
Subject: [tip:tmp.tmp2 108/364] arch/riscv/kernel/asm-offsets.c:32:2: error:
 no member named 'thread_info' in 'task_struct'

Hi Ingo,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head:   adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: a8bbfcd6b3ffac4ebcc0deb770d628fe6b8f2d05 [108/364] sched/headers: Remove <linux/mutex.h> from <linux/sched.h>
config: riscv-randconfig-r016-20210613 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=a8bbfcd6b3ffac4ebcc0deb770d628fe6b8f2d05
        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 a8bbfcd6b3ffac4ebcc0deb770d628fe6b8f2d05
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:26:2: error: no member named 'thread' in 'task_struct'
           OFFSET(TASK_THREAD_S6, task_struct, thread.s[6]);
           ^                                   ~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:27:2: error: no member named 'thread' in 'task_struct'
           OFFSET(TASK_THREAD_S7, task_struct, thread.s[7]);
           ^                                   ~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:28:2: error: no member named 'thread' in 'task_struct'
           OFFSET(TASK_THREAD_S8, task_struct, thread.s[8]);
           ^                                   ~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:29:2: error: no member named 'thread' in 'task_struct'
           OFFSET(TASK_THREAD_S9, task_struct, thread.s[9]);
           ^                                   ~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:30:2: error: no member named 'thread' in 'task_struct'
           OFFSET(TASK_THREAD_S10, task_struct, thread.s[10]);
           ^                                    ~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:31:2: error: no member named 'thread' in 'task_struct'
           OFFSET(TASK_THREAD_S11, task_struct, thread.s[11]);
           ^                                    ~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
>> arch/riscv/kernel/asm-offsets.c:32:2: error: no member named 'thread_info' in 'task_struct'
           OFFSET(TASK_TI_FLAGS, task_struct, thread_info.flags);
           ^                                  ~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:33:2: error: no member named 'thread_info' in 'task_struct'
           OFFSET(TASK_TI_PREEMPT_COUNT, task_struct, thread_info.preempt_count);
           ^                                          ~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:34:2: error: no member named 'thread_info' in 'task_struct'
           OFFSET(TASK_TI_KERNEL_SP, task_struct, thread_info.kernel_sp);
           ^                                      ~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:35:2: error: no member named 'thread_info' in 'task_struct'
           OFFSET(TASK_TI_USER_SP, task_struct, thread_info.user_sp);
           ^                                    ~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:36:2: error: no member named 'thread_info' in 'task_struct'
           OFFSET(TASK_TI_CPU, task_struct, thread_info.cpu);
           ^                                ~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   fatal error: too many errors emitted, stopping now [-ferror-limit=]
   20 errors generated.
--
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:26:2: error: no member named 'thread' in 'task_struct'
           OFFSET(TASK_THREAD_S6, task_struct, thread.s[6]);
           ^                                   ~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:27:2: error: no member named 'thread' in 'task_struct'
           OFFSET(TASK_THREAD_S7, task_struct, thread.s[7]);
           ^                                   ~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:28:2: error: no member named 'thread' in 'task_struct'
           OFFSET(TASK_THREAD_S8, task_struct, thread.s[8]);
           ^                                   ~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:29:2: error: no member named 'thread' in 'task_struct'
           OFFSET(TASK_THREAD_S9, task_struct, thread.s[9]);
           ^                                   ~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:30:2: error: no member named 'thread' in 'task_struct'
           OFFSET(TASK_THREAD_S10, task_struct, thread.s[10]);
           ^                                    ~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:31:2: error: no member named 'thread' in 'task_struct'
           OFFSET(TASK_THREAD_S11, task_struct, thread.s[11]);
           ^                                    ~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
>> arch/riscv/kernel/asm-offsets.c:32:2: error: no member named 'thread_info' in 'task_struct'
           OFFSET(TASK_TI_FLAGS, task_struct, thread_info.flags);
           ^                                  ~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:33:2: error: no member named 'thread_info' in 'task_struct'
           OFFSET(TASK_TI_PREEMPT_COUNT, task_struct, thread_info.preempt_count);
           ^                                          ~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:34:2: error: no member named 'thread_info' in 'task_struct'
           OFFSET(TASK_TI_KERNEL_SP, task_struct, thread_info.kernel_sp);
           ^                                      ~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:35:2: error: no member named 'thread_info' in 'task_struct'
           OFFSET(TASK_TI_USER_SP, task_struct, thread_info.user_sp);
           ^                                    ~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   arch/riscv/kernel/asm-offsets.c:36:2: error: no member named 'thread_info' in 'task_struct'
           OFFSET(TASK_TI_CPU, task_struct, thread_info.cpu);
           ^                                ~~~~~~~~~~~
   include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
           DEFINE(sym, offsetof(struct str, mem))
                       ^                    ~~~
   include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
                                   ^                         ~~~~~~
   include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
   #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
                                           ^                     ~
   include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
           asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
                                                                       ^~~
   fatal error: too many errors emitted, stopping now [-ferror-limit=]
   20 errors generated.
   make[2]: *** [scripts/Makefile.build:117: arch/riscv/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 +32 arch/riscv/kernel/asm-offsets.c

3ae9c3cde51abc Souptick Joarder 2020-12-09  15  
7db91e57a0acde Palmer Dabbelt   2017-07-10  16  void asm_offsets(void)
7db91e57a0acde Palmer Dabbelt   2017-07-10  17  {
7db91e57a0acde Palmer Dabbelt   2017-07-10  18  	OFFSET(TASK_THREAD_RA, task_struct, thread.ra);
7db91e57a0acde Palmer Dabbelt   2017-07-10  19  	OFFSET(TASK_THREAD_SP, task_struct, thread.sp);
7db91e57a0acde Palmer Dabbelt   2017-07-10  20  	OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]);
7db91e57a0acde Palmer Dabbelt   2017-07-10  21  	OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]);
7db91e57a0acde Palmer Dabbelt   2017-07-10  22  	OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]);
7db91e57a0acde Palmer Dabbelt   2017-07-10  23  	OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]);
7db91e57a0acde Palmer Dabbelt   2017-07-10  24  	OFFSET(TASK_THREAD_S4, task_struct, thread.s[4]);
7db91e57a0acde Palmer Dabbelt   2017-07-10  25  	OFFSET(TASK_THREAD_S5, task_struct, thread.s[5]);
7db91e57a0acde Palmer Dabbelt   2017-07-10  26  	OFFSET(TASK_THREAD_S6, task_struct, thread.s[6]);
7db91e57a0acde Palmer Dabbelt   2017-07-10  27  	OFFSET(TASK_THREAD_S7, task_struct, thread.s[7]);
7db91e57a0acde Palmer Dabbelt   2017-07-10  28  	OFFSET(TASK_THREAD_S8, task_struct, thread.s[8]);
7db91e57a0acde Palmer Dabbelt   2017-07-10  29  	OFFSET(TASK_THREAD_S9, task_struct, thread.s[9]);
7db91e57a0acde Palmer Dabbelt   2017-07-10  30  	OFFSET(TASK_THREAD_S10, task_struct, thread.s[10]);
7db91e57a0acde Palmer Dabbelt   2017-07-10  31  	OFFSET(TASK_THREAD_S11, task_struct, thread.s[11]);
7db91e57a0acde Palmer Dabbelt   2017-07-10 @32  	OFFSET(TASK_TI_FLAGS, task_struct, thread_info.flags);

:::::: The code at line 32 was first introduced by commit
:::::: 7db91e57a0acde126a162ababfb1e0ab190130cb RISC-V: Task implementation

:::::: TO: Palmer Dabbelt <palmer@...belt.com>
:::::: CC: Palmer Dabbelt <palmer@...belt.com>

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

Download attachment ".config.gz" of type "application/gzip" (33444 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ