[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202106140512.JOT5Lmnz-lkp@intel.com>
Date: Mon, 14 Jun 2021 05:21:15 +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 101/364] arch/riscv/kernel/asm-offsets.c:18:2: error:
no member named 'thread' 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: 3d4d54f073ba51554acd0fc3999027a4e2ee636a [101/364] sched/headers: Remove <linux/seqcount.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=3d4d54f073ba51554acd0fc3999027a4e2ee636a
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 3d4d54f073ba51554acd0fc3999027a4e2ee636a
# 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 >>):
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:328:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:316:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:308:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:19: error: implicit declaration of function 'current_thread_info' [-Werror,-Wimplicit-function-declaration]
return READ_ONCE(current_thread_info()->preempt_count);
^
include/asm-generic/preempt.h:11:42: error: member reference type 'int' is not a pointer
return READ_ONCE(current_thread_info()->preempt_count);
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:279:13: note: expanded from macro '__unqual_scalar_typeof'
_Generic((x), \
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:42: error: member reference type 'int' is not a pointer
return READ_ONCE(current_thread_info()->preempt_count);
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:286:15: note: expanded from macro '__unqual_scalar_typeof'
default: (x)))
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:42: error: member reference type 'int' is not a pointer
return READ_ONCE(current_thread_info()->preempt_count);
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:72: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:9: error: returning 'void' from a function with incompatible result type 'int'
return READ_ONCE(current_thread_info()->preempt_count);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:47:28: note: expanded from macro 'READ_ONCE'
#define READ_ONCE(x) \
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:16:10: error: implicit declaration of function 'current_thread_info' [-Werror,-Wimplicit-function-declaration]
return ¤t_thread_info()->preempt_count;
^
include/asm-generic/preempt.h:16:33: error: member reference type 'int' is not a pointer
return ¤t_thread_info()->preempt_count;
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror,-Wimplicit-function-declaration]
return !--*preempt_count_ptr() && tif_need_resched();
^
include/asm-generic/preempt.h:78:4: error: implicit declaration of function 'tif_need_resched' [-Werror,-Wimplicit-function-declaration]
tif_need_resched());
^
>> arch/riscv/kernel/asm-offsets.c:18:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_RA, task_struct, thread.ra);
^ ~~~~~~
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:19:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_SP, task_struct, thread.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:20:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]);
^ ~~~~~~
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:21:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]);
^ ~~~~~~
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.
--
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:328:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:316:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:308:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:19: error: implicit declaration of function 'current_thread_info' [-Werror,-Wimplicit-function-declaration]
return READ_ONCE(current_thread_info()->preempt_count);
^
include/asm-generic/preempt.h:11:42: error: member reference type 'int' is not a pointer
return READ_ONCE(current_thread_info()->preempt_count);
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:279:13: note: expanded from macro '__unqual_scalar_typeof'
_Generic((x), \
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:42: error: member reference type 'int' is not a pointer
return READ_ONCE(current_thread_info()->preempt_count);
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:286:15: note: expanded from macro '__unqual_scalar_typeof'
default: (x)))
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:42: error: member reference type 'int' is not a pointer
return READ_ONCE(current_thread_info()->preempt_count);
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:72: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:9: error: returning 'void' from a function with incompatible result type 'int'
return READ_ONCE(current_thread_info()->preempt_count);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:47:28: note: expanded from macro 'READ_ONCE'
#define READ_ONCE(x) \
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:16:10: error: implicit declaration of function 'current_thread_info' [-Werror,-Wimplicit-function-declaration]
return ¤t_thread_info()->preempt_count;
^
include/asm-generic/preempt.h:16:33: error: member reference type 'int' is not a pointer
return ¤t_thread_info()->preempt_count;
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror,-Wimplicit-function-declaration]
return !--*preempt_count_ptr() && tif_need_resched();
^
include/asm-generic/preempt.h:78:4: error: implicit declaration of function 'tif_need_resched' [-Werror,-Wimplicit-function-declaration]
tif_need_resched());
^
>> arch/riscv/kernel/asm-offsets.c:18:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_RA, task_struct, thread.ra);
^ ~~~~~~
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:19:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_SP, task_struct, thread.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:20:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]);
^ ~~~~~~
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:21:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]);
^ ~~~~~~
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 +18 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);
:::::: The code at line 18 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