[tip:tmp.tmp2 336/364] arch/x86/include/asm/page_32_types.h:22: warning: "THREAD_SIZE_ORDER" redefined
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 8ba52e725f44d3c1da94670a29614b683e286c5a [336/364] sched/headers, mm: Simplify <linux/slab.h>'s header file dependencies
config: um-i386_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=8b...
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 8ba52e725f44d3c1da94670a29614b683e286c5a
# save the attached .config to linux build tree
make W=1 ARCH=um SUBARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/x86/um/user-offsets.c:18:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
18 | void foo(void)
| ^~~
In file included from include/linux/slab.h:20,
from include/linux/crypto.h:20,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
arch/x86/include/asm/page_types.h:11: warning: "PAGE_SIZE" redefined
11 | #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
|
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:52,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/sched.h:18,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/asm/page.h:14: note: this is the location of the previous definition
14 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
|
In file included from include/linux/slab.h:20,
from include/linux/crypto.h:20,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
arch/x86/include/asm/page_types.h:36: warning: "PAGE_OFFSET" redefined
36 | #define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
|
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:52,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/sched.h:18,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/asm/page.h:93: note: this is the location of the previous definition
93 | #define PAGE_OFFSET (uml_physmem)
|
In file included from arch/x86/include/asm/page_types.h:49,
from include/linux/slab.h:20,
from include/linux/crypto.h:20,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
>> arch/x86/include/asm/page_32_types.h:22: warning: "THREAD_SIZE_ORDER" redefined
22 | #define THREAD_SIZE_ORDER 1
|
In file included from include/linux/thread_info.h:52,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/sched.h:18,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/asm/thread_info.h:9: note: this is the location of the previous definition
9 | #define THREAD_SIZE_ORDER CONFIG_KERNEL_STACK_ORDER
|
In file included from arch/x86/include/asm/page_types.h:49,
from include/linux/slab.h:20,
from include/linux/crypto.h:20,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
>> arch/x86/include/asm/page_32_types.h:23: warning: "THREAD_SIZE" redefined
23 | #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
|
In file included from include/linux/thread_info.h:52,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/sched.h:18,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/asm/thread_info.h:10: note: this is the location of the previous definition
10 | #define THREAD_SIZE ((1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE)
|
In file included from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:80,
from include/linux/spinlock.h:53,
from include/linux/swait.h:7,
from include/linux/completion.h:12,
from include/linux/crypto.h:21,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
69 | return !--*preempt_count_ptr() && tif_need_resched();
| ^~~~~~~~~~~~~~~~
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/spinlock_up.h:8,
from include/linux/spinlock.h:93,
from include/linux/swait.h:7,
from include/linux/completion.h:12,
from include/linux/crypto.h:21,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/asm/processor-generic.h: At top level:
arch/um/include/asm/processor-generic.h:71: warning: "TASK_SIZE" redefined
71 | #define TASK_SIZE (task_size)
|
In file included from arch/x86/include/asm/page_types.h:49,
from include/linux/slab.h:20,
from include/linux/crypto.h:20,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
arch/x86/include/asm/page_32_types.h:48: note: this is the location of the previous definition
48 | #define TASK_SIZE __PAGE_OFFSET
|
In file included from arch/um/kernel/asm-offsets.c:1:
arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
9 | void foo(void)
| ^~~
In file included from arch/x86/um/shared/sysdep/kernel-offsets.h:6,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/shared/common-offsets.h: In function 'foo':
arch/um/include/shared/common-offsets.h:26:15: error: 'HZ' undeclared (first use in this function)
26 | DEFINE(UM_HZ, HZ);
| ^~
include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
6 | asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
| ^~~
arch/um/include/shared/common-offsets.h:26:15: note: each undeclared identifier is reported only once for each function it appears in
26 | DEFINE(UM_HZ, HZ);
| ^~
include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
6 | asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
| ^~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/um/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.
--
arch/x86/um/user-offsets.c:18:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
18 | void foo(void)
| ^~~
In file included from include/linux/slab.h:20,
from include/linux/crypto.h:20,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
arch/x86/include/asm/page_types.h:11: warning: "PAGE_SIZE" redefined
11 | #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
|
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:52,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/sched.h:18,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/asm/page.h:14: note: this is the location of the previous definition
14 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
|
In file included from include/linux/slab.h:20,
from include/linux/crypto.h:20,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
arch/x86/include/asm/page_types.h:36: warning: "PAGE_OFFSET" redefined
36 | #define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
|
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:52,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/sched.h:18,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/asm/page.h:93: note: this is the location of the previous definition
93 | #define PAGE_OFFSET (uml_physmem)
|
In file included from arch/x86/include/asm/page_types.h:49,
from include/linux/slab.h:20,
from include/linux/crypto.h:20,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
>> arch/x86/include/asm/page_32_types.h:22: warning: "THREAD_SIZE_ORDER" redefined
22 | #define THREAD_SIZE_ORDER 1
|
In file included from include/linux/thread_info.h:52,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/sched.h:18,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/asm/thread_info.h:9: note: this is the location of the previous definition
9 | #define THREAD_SIZE_ORDER CONFIG_KERNEL_STACK_ORDER
|
In file included from arch/x86/include/asm/page_types.h:49,
from include/linux/slab.h:20,
from include/linux/crypto.h:20,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
>> arch/x86/include/asm/page_32_types.h:23: warning: "THREAD_SIZE" redefined
23 | #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
|
In file included from include/linux/thread_info.h:52,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/sched.h:18,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/asm/thread_info.h:10: note: this is the location of the previous definition
10 | #define THREAD_SIZE ((1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE)
|
In file included from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:80,
from include/linux/spinlock.h:53,
from include/linux/swait.h:7,
from include/linux/completion.h:12,
from include/linux/crypto.h:21,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
69 | return !--*preempt_count_ptr() && tif_need_resched();
| ^~~~~~~~~~~~~~~~
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/spinlock_up.h:8,
from include/linux/spinlock.h:93,
from include/linux/swait.h:7,
from include/linux/completion.h:12,
from include/linux/crypto.h:21,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/asm/processor-generic.h: At top level:
arch/um/include/asm/processor-generic.h:71: warning: "TASK_SIZE" redefined
71 | #define TASK_SIZE (task_size)
|
In file included from arch/x86/include/asm/page_types.h:49,
from include/linux/slab.h:20,
from include/linux/crypto.h:20,
from arch/x86/um/shared/sysdep/kernel-offsets.h:5,
from arch/um/kernel/asm-offsets.c:1:
arch/x86/include/asm/page_32_types.h:48: note: this is the location of the previous definition
48 | #define TASK_SIZE __PAGE_OFFSET
|
In file included from arch/um/kernel/asm-offsets.c:1:
arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
9 | void foo(void)
| ^~~
In file included from arch/x86/um/shared/sysdep/kernel-offsets.h:6,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/shared/common-offsets.h: In function 'foo':
arch/um/include/shared/common-offsets.h:26:15: error: 'HZ' undeclared (first use in this function)
26 | DEFINE(UM_HZ, HZ);
| ^~
include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
6 | asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
| ^~~
arch/um/include/shared/common-offsets.h:26:15: note: each undeclared identifier is reported only once for each function it appears in
26 | DEFINE(UM_HZ, HZ);
| ^~
include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
6 | asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
| ^~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/um/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 +/THREAD_SIZE_ORDER +22 arch/x86/include/asm/page_32_types.h
a02150610776f6 Kees Cook 2013-07-08 21
38e7c572ce7310 Thomas Gleixner 2012-05-05 @22 #define THREAD_SIZE_ORDER 1
38e7c572ce7310 Thomas Gleixner 2012-05-05 @23 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 24
:::::: The code at line 22 was first introduced by commit
:::::: 38e7c572ce7310def003d8bb7c34260f5d8118cb x86: Use common threadinfo allocator
:::::: TO: Thomas Gleixner <tglx(a)linutronix.de>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tip:tmp.tmp2 12/364] include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 40962503e2b9bddcef82fba70374b464ee9867b1 [12/364] sched/headers: Move thread_info APIs to <linux/sched/thread_info_api.h>
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=40...
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 40962503e2b9bddcef82fba70374b464ee9867b1
# save the attached .config to linux build tree
make W=1 ARCH=um SUBARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:80,
from include/linux/rcupdate.h:29,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:16,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
>> include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
69 | return !--*preempt_count_ptr() && tif_need_resched();
| ^~~~~~~~~~~~~~~~
In file included from arch/um/kernel/asm-offsets.c:1:
arch/x86/um/shared/sysdep/kernel-offsets.h: At top level:
arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
9 | void foo(void)
| ^~~
cc1: some warnings being treated as errors
--
arch/x86/um/user-offsets.c:18:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
18 | void foo(void)
| ^~~
In file included from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:80,
from include/linux/rcupdate.h:29,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:16,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
>> include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
69 | return !--*preempt_count_ptr() && tif_need_resched();
| ^~~~~~~~~~~~~~~~
In file included from arch/um/kernel/asm-offsets.c:1:
arch/x86/um/shared/sysdep/kernel-offsets.h: At top level:
arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
9 | void foo(void)
| ^~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/um/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.
--
arch/x86/um/user-offsets.c:18:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
18 | void foo(void)
| ^~~
In file included from ./arch/um/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:80,
from include/linux/rcupdate.h:29,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:16,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
>> include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
69 | return !--*preempt_count_ptr() && tif_need_resched();
| ^~~~~~~~~~~~~~~~
In file included from arch/um/kernel/asm-offsets.c:1:
arch/x86/um/shared/sysdep/kernel-offsets.h: At top level:
arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
9 | void foo(void)
| ^~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/um/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 +/tif_need_resched +69 include/asm-generic/preempt.h
bdb43806589096 Peter Zijlstra 2013-09-10 61
bdb43806589096 Peter Zijlstra 2013-09-10 62 static __always_inline bool __preempt_count_dec_and_test(void)
bdb43806589096 Peter Zijlstra 2013-09-10 63 {
ba1f14fbe70965 Peter Zijlstra 2013-11-28 64 /*
ba1f14fbe70965 Peter Zijlstra 2013-11-28 65 * Because of load-store architectures cannot do per-cpu atomic
ba1f14fbe70965 Peter Zijlstra 2013-11-28 66 * operations; we cannot use PREEMPT_NEED_RESCHED because it might get
ba1f14fbe70965 Peter Zijlstra 2013-11-28 67 * lost.
ba1f14fbe70965 Peter Zijlstra 2013-11-28 68 */
ba1f14fbe70965 Peter Zijlstra 2013-11-28 @69 return !--*preempt_count_ptr() && tif_need_resched();
bdb43806589096 Peter Zijlstra 2013-09-10 70 }
bdb43806589096 Peter Zijlstra 2013-09-10 71
:::::: The code at line 69 was first introduced by commit
:::::: ba1f14fbe70965ae0fb1655a5275a62723f65b77 sched: Remove PREEMPT_NEED_RESCHED from generic code
:::::: TO: Peter Zijlstra <peterz(a)infradead.org>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tip:tmp.tmp2 67/364] include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack_canary'
by kernel test robot
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=8b...
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(a)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(a)bytedance.com>
:::::: CC: Miguel Ojeda <miguel.ojeda.sandonis(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tip:tmp.tmp2 253/364] arch/riscv/kernel/asm-offsets.c:313:27: error: implicit declaration of function 'ALIGN'
by kernel test robot
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: d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463 [253/364] sched/headers: Simplify <linux/kernel.h>
config: riscv-nommu_k210_defconfig (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=d9...
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 d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463
# 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(a)intel.com>
All errors (new ones prefixed by >>):
| ^~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/asm-offsets.c:290:5: note: in expansion of macro 'offsetof'
290 | - offsetof(struct task_struct, thread.fstate.f[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:293:5: note: in expansion of macro 'offsetof'
293 | offsetof(struct 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)
| ^~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/asm-offsets.c:294:5: note: in expansion of macro 'offsetof'
294 | - offsetof(struct task_struct, thread.fstate.f[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:297:5: note: in expansion of macro 'offsetof'
297 | offsetof(struct 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)
| ^~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/asm-offsets.c:298:5: note: in expansion of macro 'offsetof'
298 | - offsetof(struct task_struct, thread.fstate.f[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:301:5: note: in expansion of macro 'offsetof'
301 | offsetof(struct 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)
| ^~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/asm-offsets.c:302:5: note: in expansion of macro 'offsetof'
302 | - offsetof(struct task_struct, thread.fstate.f[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:305:5: note: in expansion of macro 'offsetof'
305 | offsetof(struct task_struct, thread.fstate.fcsr)
| ^~~~~~~~
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:306:5: note: in expansion of macro 'offsetof'
306 | - offsetof(struct task_struct, thread.fstate.f[0])
| ^~~~~~~~
>> arch/riscv/kernel/asm-offsets.c:313:27: error: implicit declaration of function 'ALIGN' [-Werror=implicit-function-declaration]
313 | DEFINE(PT_SIZE_ON_STACK, ALIGN(sizeof(struct pt_regs), STACK_ALIGN));
| ^~~~~
include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
6 | asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
| ^~~
cc1: some warnings being treated as errors
--
| ^~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/asm-offsets.c:290:5: note: in expansion of macro 'offsetof'
290 | - offsetof(struct task_struct, thread.fstate.f[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:293:5: note: in expansion of macro 'offsetof'
293 | offsetof(struct 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)
| ^~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/asm-offsets.c:294:5: note: in expansion of macro 'offsetof'
294 | - offsetof(struct task_struct, thread.fstate.f[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:297:5: note: in expansion of macro 'offsetof'
297 | offsetof(struct 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)
| ^~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/asm-offsets.c:298:5: note: in expansion of macro 'offsetof'
298 | - offsetof(struct task_struct, thread.fstate.f[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:301:5: note: in expansion of macro 'offsetof'
301 | offsetof(struct 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)
| ^~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/asm-offsets.c:302:5: note: in expansion of macro 'offsetof'
302 | - offsetof(struct task_struct, thread.fstate.f[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:305:5: note: in expansion of macro 'offsetof'
305 | offsetof(struct task_struct, thread.fstate.fcsr)
| ^~~~~~~~
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:306:5: note: in expansion of macro 'offsetof'
306 | - offsetof(struct task_struct, thread.fstate.f[0])
| ^~~~~~~~
>> arch/riscv/kernel/asm-offsets.c:313:27: error: implicit declaration of function 'ALIGN' [-Werror=implicit-function-declaration]
313 | DEFINE(PT_SIZE_ON_STACK, ALIGN(sizeof(struct pt_regs), STACK_ALIGN));
| ^~~~~
include/linux/kbuild.h:6:62: note: in definition of macro 'DEFINE'
6 | asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
| ^~~
cc1: some warnings being treated as errors
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 +/ALIGN +313 arch/riscv/kernel/asm-offsets.c
7db91e57a0acde Palmer Dabbelt 2017-07-10 74
7db91e57a0acde Palmer Dabbelt 2017-07-10 75 DEFINE(PT_SIZE, sizeof(struct pt_regs));
a4c3733d32a72f Christoph Hellwig 2019-10-28 76 OFFSET(PT_EPC, pt_regs, epc);
7db91e57a0acde Palmer Dabbelt 2017-07-10 77 OFFSET(PT_RA, pt_regs, ra);
7db91e57a0acde Palmer Dabbelt 2017-07-10 78 OFFSET(PT_FP, pt_regs, s0);
7db91e57a0acde Palmer Dabbelt 2017-07-10 79 OFFSET(PT_S0, pt_regs, s0);
7db91e57a0acde Palmer Dabbelt 2017-07-10 80 OFFSET(PT_S1, pt_regs, s1);
7db91e57a0acde Palmer Dabbelt 2017-07-10 81 OFFSET(PT_S2, pt_regs, s2);
7db91e57a0acde Palmer Dabbelt 2017-07-10 82 OFFSET(PT_S3, pt_regs, s3);
7db91e57a0acde Palmer Dabbelt 2017-07-10 83 OFFSET(PT_S4, pt_regs, s4);
7db91e57a0acde Palmer Dabbelt 2017-07-10 84 OFFSET(PT_S5, pt_regs, s5);
7db91e57a0acde Palmer Dabbelt 2017-07-10 85 OFFSET(PT_S6, pt_regs, s6);
7db91e57a0acde Palmer Dabbelt 2017-07-10 86 OFFSET(PT_S7, pt_regs, s7);
7db91e57a0acde Palmer Dabbelt 2017-07-10 87 OFFSET(PT_S8, pt_regs, s8);
7db91e57a0acde Palmer Dabbelt 2017-07-10 88 OFFSET(PT_S9, pt_regs, s9);
7db91e57a0acde Palmer Dabbelt 2017-07-10 89 OFFSET(PT_S10, pt_regs, s10);
7db91e57a0acde Palmer Dabbelt 2017-07-10 90 OFFSET(PT_S11, pt_regs, s11);
7db91e57a0acde Palmer Dabbelt 2017-07-10 91 OFFSET(PT_SP, pt_regs, sp);
7db91e57a0acde Palmer Dabbelt 2017-07-10 92 OFFSET(PT_TP, pt_regs, tp);
7db91e57a0acde Palmer Dabbelt 2017-07-10 93 OFFSET(PT_A0, pt_regs, a0);
7db91e57a0acde Palmer Dabbelt 2017-07-10 94 OFFSET(PT_A1, pt_regs, a1);
7db91e57a0acde Palmer Dabbelt 2017-07-10 95 OFFSET(PT_A2, pt_regs, a2);
7db91e57a0acde Palmer Dabbelt 2017-07-10 96 OFFSET(PT_A3, pt_regs, a3);
7db91e57a0acde Palmer Dabbelt 2017-07-10 97 OFFSET(PT_A4, pt_regs, a4);
7db91e57a0acde Palmer Dabbelt 2017-07-10 98 OFFSET(PT_A5, pt_regs, a5);
7db91e57a0acde Palmer Dabbelt 2017-07-10 99 OFFSET(PT_A6, pt_regs, a6);
7db91e57a0acde Palmer Dabbelt 2017-07-10 100 OFFSET(PT_A7, pt_regs, a7);
7db91e57a0acde Palmer Dabbelt 2017-07-10 101 OFFSET(PT_T0, pt_regs, t0);
7db91e57a0acde Palmer Dabbelt 2017-07-10 102 OFFSET(PT_T1, pt_regs, t1);
7db91e57a0acde Palmer Dabbelt 2017-07-10 103 OFFSET(PT_T2, pt_regs, t2);
7db91e57a0acde Palmer Dabbelt 2017-07-10 104 OFFSET(PT_T3, pt_regs, t3);
7db91e57a0acde Palmer Dabbelt 2017-07-10 105 OFFSET(PT_T4, pt_regs, t4);
7db91e57a0acde Palmer Dabbelt 2017-07-10 106 OFFSET(PT_T5, pt_regs, t5);
7db91e57a0acde Palmer Dabbelt 2017-07-10 107 OFFSET(PT_T6, pt_regs, t6);
7db91e57a0acde Palmer Dabbelt 2017-07-10 108 OFFSET(PT_GP, pt_regs, gp);
7db91e57a0acde Palmer Dabbelt 2017-07-10 109 OFFSET(PT_ORIG_A0, pt_regs, orig_a0);
a4c3733d32a72f Christoph Hellwig 2019-10-28 110 OFFSET(PT_STATUS, pt_regs, status);
a4c3733d32a72f Christoph Hellwig 2019-10-28 111 OFFSET(PT_BADADDR, pt_regs, badaddr);
a4c3733d32a72f Christoph Hellwig 2019-10-28 112 OFFSET(PT_CAUSE, pt_regs, cause);
7db91e57a0acde Palmer Dabbelt 2017-07-10 113
7db91e57a0acde Palmer Dabbelt 2017-07-10 114 /*
7db91e57a0acde Palmer Dabbelt 2017-07-10 115 * THREAD_{F,X}* might be larger than a S-type offset can handle, but
7db91e57a0acde Palmer Dabbelt 2017-07-10 116 * these are used in performance-sensitive assembly so we can't resort
7db91e57a0acde Palmer Dabbelt 2017-07-10 117 * to loading the long immediate every time.
7db91e57a0acde Palmer Dabbelt 2017-07-10 118 */
7db91e57a0acde Palmer Dabbelt 2017-07-10 119 DEFINE(TASK_THREAD_RA_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 120 offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 121 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 122 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 123 DEFINE(TASK_THREAD_SP_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 124 offsetof(struct task_struct, thread.sp)
7db91e57a0acde Palmer Dabbelt 2017-07-10 125 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 126 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 127 DEFINE(TASK_THREAD_S0_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 128 offsetof(struct task_struct, thread.s[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 129 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 130 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 131 DEFINE(TASK_THREAD_S1_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 132 offsetof(struct task_struct, thread.s[1])
7db91e57a0acde Palmer Dabbelt 2017-07-10 133 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 134 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 135 DEFINE(TASK_THREAD_S2_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 136 offsetof(struct task_struct, thread.s[2])
7db91e57a0acde Palmer Dabbelt 2017-07-10 137 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 138 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 139 DEFINE(TASK_THREAD_S3_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 140 offsetof(struct task_struct, thread.s[3])
7db91e57a0acde Palmer Dabbelt 2017-07-10 141 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 142 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 143 DEFINE(TASK_THREAD_S4_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 144 offsetof(struct task_struct, thread.s[4])
7db91e57a0acde Palmer Dabbelt 2017-07-10 145 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 146 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 147 DEFINE(TASK_THREAD_S5_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 148 offsetof(struct task_struct, thread.s[5])
7db91e57a0acde Palmer Dabbelt 2017-07-10 149 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 150 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 151 DEFINE(TASK_THREAD_S6_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 152 offsetof(struct task_struct, thread.s[6])
7db91e57a0acde Palmer Dabbelt 2017-07-10 153 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 154 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 155 DEFINE(TASK_THREAD_S7_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 156 offsetof(struct task_struct, thread.s[7])
7db91e57a0acde Palmer Dabbelt 2017-07-10 157 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 158 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 159 DEFINE(TASK_THREAD_S8_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 160 offsetof(struct task_struct, thread.s[8])
7db91e57a0acde Palmer Dabbelt 2017-07-10 161 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 162 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 163 DEFINE(TASK_THREAD_S9_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 164 offsetof(struct task_struct, thread.s[9])
7db91e57a0acde Palmer Dabbelt 2017-07-10 165 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 166 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 167 DEFINE(TASK_THREAD_S10_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 168 offsetof(struct task_struct, thread.s[10])
7db91e57a0acde Palmer Dabbelt 2017-07-10 169 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 170 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 171 DEFINE(TASK_THREAD_S11_RA,
7db91e57a0acde Palmer Dabbelt 2017-07-10 172 offsetof(struct task_struct, thread.s[11])
7db91e57a0acde Palmer Dabbelt 2017-07-10 173 - offsetof(struct task_struct, thread.ra)
7db91e57a0acde Palmer Dabbelt 2017-07-10 174 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 175
7db91e57a0acde Palmer Dabbelt 2017-07-10 176 DEFINE(TASK_THREAD_F0_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 177 offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 178 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 179 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 180 DEFINE(TASK_THREAD_F1_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 181 offsetof(struct task_struct, thread.fstate.f[1])
7db91e57a0acde Palmer Dabbelt 2017-07-10 182 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 183 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 184 DEFINE(TASK_THREAD_F2_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 185 offsetof(struct task_struct, thread.fstate.f[2])
7db91e57a0acde Palmer Dabbelt 2017-07-10 186 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 187 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 188 DEFINE(TASK_THREAD_F3_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 189 offsetof(struct task_struct, thread.fstate.f[3])
7db91e57a0acde Palmer Dabbelt 2017-07-10 190 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 191 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 192 DEFINE(TASK_THREAD_F4_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 193 offsetof(struct task_struct, thread.fstate.f[4])
7db91e57a0acde Palmer Dabbelt 2017-07-10 194 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 195 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 196 DEFINE(TASK_THREAD_F5_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 197 offsetof(struct task_struct, thread.fstate.f[5])
7db91e57a0acde Palmer Dabbelt 2017-07-10 198 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 199 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 200 DEFINE(TASK_THREAD_F6_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 201 offsetof(struct task_struct, thread.fstate.f[6])
7db91e57a0acde Palmer Dabbelt 2017-07-10 202 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 203 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 204 DEFINE(TASK_THREAD_F7_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 205 offsetof(struct task_struct, thread.fstate.f[7])
7db91e57a0acde Palmer Dabbelt 2017-07-10 206 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 207 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 208 DEFINE(TASK_THREAD_F8_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 209 offsetof(struct task_struct, thread.fstate.f[8])
7db91e57a0acde Palmer Dabbelt 2017-07-10 210 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 211 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 212 DEFINE(TASK_THREAD_F9_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 213 offsetof(struct task_struct, thread.fstate.f[9])
7db91e57a0acde Palmer Dabbelt 2017-07-10 214 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 215 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 216 DEFINE(TASK_THREAD_F10_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 217 offsetof(struct task_struct, thread.fstate.f[10])
7db91e57a0acde Palmer Dabbelt 2017-07-10 218 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 219 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 220 DEFINE(TASK_THREAD_F11_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 221 offsetof(struct task_struct, thread.fstate.f[11])
7db91e57a0acde Palmer Dabbelt 2017-07-10 222 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 223 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 224 DEFINE(TASK_THREAD_F12_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 225 offsetof(struct task_struct, thread.fstate.f[12])
7db91e57a0acde Palmer Dabbelt 2017-07-10 226 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 227 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 228 DEFINE(TASK_THREAD_F13_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 229 offsetof(struct task_struct, thread.fstate.f[13])
7db91e57a0acde Palmer Dabbelt 2017-07-10 230 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 231 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 232 DEFINE(TASK_THREAD_F14_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 233 offsetof(struct task_struct, thread.fstate.f[14])
7db91e57a0acde Palmer Dabbelt 2017-07-10 234 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 235 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 236 DEFINE(TASK_THREAD_F15_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 237 offsetof(struct task_struct, thread.fstate.f[15])
7db91e57a0acde Palmer Dabbelt 2017-07-10 238 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 239 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 240 DEFINE(TASK_THREAD_F16_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 241 offsetof(struct task_struct, thread.fstate.f[16])
7db91e57a0acde Palmer Dabbelt 2017-07-10 242 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 243 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 244 DEFINE(TASK_THREAD_F17_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 245 offsetof(struct task_struct, thread.fstate.f[17])
7db91e57a0acde Palmer Dabbelt 2017-07-10 246 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 247 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 248 DEFINE(TASK_THREAD_F18_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 249 offsetof(struct task_struct, thread.fstate.f[18])
7db91e57a0acde Palmer Dabbelt 2017-07-10 250 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 251 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 252 DEFINE(TASK_THREAD_F19_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 253 offsetof(struct task_struct, thread.fstate.f[19])
7db91e57a0acde Palmer Dabbelt 2017-07-10 254 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 255 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 256 DEFINE(TASK_THREAD_F20_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 257 offsetof(struct task_struct, thread.fstate.f[20])
7db91e57a0acde Palmer Dabbelt 2017-07-10 258 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 259 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 260 DEFINE(TASK_THREAD_F21_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 261 offsetof(struct task_struct, thread.fstate.f[21])
7db91e57a0acde Palmer Dabbelt 2017-07-10 262 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 263 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 264 DEFINE(TASK_THREAD_F22_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 265 offsetof(struct task_struct, thread.fstate.f[22])
7db91e57a0acde Palmer Dabbelt 2017-07-10 266 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 267 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 268 DEFINE(TASK_THREAD_F23_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 269 offsetof(struct task_struct, thread.fstate.f[23])
7db91e57a0acde Palmer Dabbelt 2017-07-10 270 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 271 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 272 DEFINE(TASK_THREAD_F24_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 273 offsetof(struct task_struct, thread.fstate.f[24])
7db91e57a0acde Palmer Dabbelt 2017-07-10 274 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 275 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 276 DEFINE(TASK_THREAD_F25_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 277 offsetof(struct task_struct, thread.fstate.f[25])
7db91e57a0acde Palmer Dabbelt 2017-07-10 278 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 279 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 280 DEFINE(TASK_THREAD_F26_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 281 offsetof(struct task_struct, thread.fstate.f[26])
7db91e57a0acde Palmer Dabbelt 2017-07-10 282 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 283 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 284 DEFINE(TASK_THREAD_F27_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 285 offsetof(struct task_struct, thread.fstate.f[27])
7db91e57a0acde Palmer Dabbelt 2017-07-10 286 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 287 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 288 DEFINE(TASK_THREAD_F28_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 289 offsetof(struct task_struct, thread.fstate.f[28])
7db91e57a0acde Palmer Dabbelt 2017-07-10 290 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 291 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 292 DEFINE(TASK_THREAD_F29_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 293 offsetof(struct task_struct, thread.fstate.f[29])
7db91e57a0acde Palmer Dabbelt 2017-07-10 294 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 295 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 296 DEFINE(TASK_THREAD_F30_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 297 offsetof(struct task_struct, thread.fstate.f[30])
7db91e57a0acde Palmer Dabbelt 2017-07-10 298 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 299 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 300 DEFINE(TASK_THREAD_F31_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 301 offsetof(struct task_struct, thread.fstate.f[31])
7db91e57a0acde Palmer Dabbelt 2017-07-10 302 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 303 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 304 DEFINE(TASK_THREAD_FCSR_F0,
7db91e57a0acde Palmer Dabbelt 2017-07-10 305 offsetof(struct task_struct, thread.fstate.fcsr)
7db91e57a0acde Palmer Dabbelt 2017-07-10 306 - offsetof(struct task_struct, thread.fstate.f[0])
7db91e57a0acde Palmer Dabbelt 2017-07-10 307 );
7db91e57a0acde Palmer Dabbelt 2017-07-10 308
7db91e57a0acde Palmer Dabbelt 2017-07-10 309 /*
7db91e57a0acde Palmer Dabbelt 2017-07-10 310 * We allocate a pt_regs on the stack when entering the kernel. This
7db91e57a0acde Palmer Dabbelt 2017-07-10 311 * ensures the alignment is sane.
7db91e57a0acde Palmer Dabbelt 2017-07-10 312 */
7db91e57a0acde Palmer Dabbelt 2017-07-10 @313 DEFINE(PT_SIZE_ON_STACK, ALIGN(sizeof(struct pt_regs), STACK_ALIGN));
:::::: The code at line 313 was first introduced by commit
:::::: 7db91e57a0acde126a162ababfb1e0ab190130cb RISC-V: Task implementation
:::::: TO: Palmer Dabbelt <palmer(a)dabbelt.com>
:::::: CC: Palmer Dabbelt <palmer(a)dabbelt.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tip:tmp.tmp2 154/364] include/linux/syscall_user_dispatch.h:29:10: error: 'EINVAL' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 6ca85f643325cbbcd70bc08bfab7ee67c26b8607 [154/364] sched/headers: Remove <linux/nodemask.h> from <linux/sched.h>
config: riscv-nommu_k210_defconfig (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=6c...
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 6ca85f643325cbbcd70bc08bfab7ee67c26b8607
# 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(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/sched.h:25,
from arch/riscv/kernel/asm-offsets.c:10:
include/linux/syscall_user_dispatch.h: In function 'set_syscall_user_dispatch':
>> include/linux/syscall_user_dispatch.h:29:10: error: 'EINVAL' undeclared (first use in this function)
29 | return -EINVAL;
| ^~~~~~
include/linux/syscall_user_dispatch.h:29:10: note: each undeclared identifier is reported only once for each function it appears in
In file included from arch/riscv/kernel/asm-offsets.c:9:
arch/riscv/kernel/asm-offsets.c: In function 'asm_offsets':
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:18:2: note: in expansion of macro 'OFFSET'
18 | OFFSET(TASK_THREAD_RA, 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)
| ^~~~~~~~~~~~~~~~~~~
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:19:2: note: in expansion of macro 'OFFSET'
19 | OFFSET(TASK_THREAD_SP, 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)
| ^~~~~~~~~~~~~~~~~~~
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:20:2: note: in expansion of macro 'OFFSET'
20 | OFFSET(TASK_THREAD_S0, 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)
| ^~~~~~~~~~~~~~~~~~~
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:21:2: note: in expansion of macro 'OFFSET'
21 | OFFSET(TASK_THREAD_S1, 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/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:22:2: note: in expansion of macro 'OFFSET'
22 | OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]);
| ^~~~~~
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:23:2: note: in expansion of macro 'OFFSET'
23 | OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]);
| ^~~~~~
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))
--
In file included from include/linux/sched.h:25,
from arch/riscv/kernel/asm-offsets.c:10:
include/linux/syscall_user_dispatch.h: In function 'set_syscall_user_dispatch':
>> include/linux/syscall_user_dispatch.h:29:10: error: 'EINVAL' undeclared (first use in this function)
29 | return -EINVAL;
| ^~~~~~
include/linux/syscall_user_dispatch.h:29:10: note: each undeclared identifier is reported only once for each function it appears in
In file included from arch/riscv/kernel/asm-offsets.c:9:
arch/riscv/kernel/asm-offsets.c: In function 'asm_offsets':
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:18:2: note: in expansion of macro 'OFFSET'
18 | OFFSET(TASK_THREAD_RA, 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)
| ^~~~~~~~~~~~~~~~~~~
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:19:2: note: in expansion of macro 'OFFSET'
19 | OFFSET(TASK_THREAD_SP, 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)
| ^~~~~~~~~~~~~~~~~~~
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:20:2: note: in expansion of macro 'OFFSET'
20 | OFFSET(TASK_THREAD_S0, 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)
| ^~~~~~~~~~~~~~~~~~~
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:21:2: note: in expansion of macro 'OFFSET'
21 | OFFSET(TASK_THREAD_S1, 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/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:22:2: note: in expansion of macro 'OFFSET'
22 | OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]);
| ^~~~~~
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:23:2: note: in expansion of macro 'OFFSET'
23 | OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]);
| ^~~~~~
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))
vim +/EINVAL +29 include/linux/syscall_user_dispatch.h
1446e1df9eb183 Gabriel Krisman Bertazi 2020-11-27 25
1446e1df9eb183 Gabriel Krisman Bertazi 2020-11-27 26 static inline int set_syscall_user_dispatch(unsigned long mode, unsigned long offset,
1446e1df9eb183 Gabriel Krisman Bertazi 2020-11-27 27 unsigned long len, char __user *selector)
1446e1df9eb183 Gabriel Krisman Bertazi 2020-11-27 28 {
1446e1df9eb183 Gabriel Krisman Bertazi 2020-11-27 @29 return -EINVAL;
1446e1df9eb183 Gabriel Krisman Bertazi 2020-11-27 30 }
1446e1df9eb183 Gabriel Krisman Bertazi 2020-11-27 31
:::::: The code at line 29 was first introduced by commit
:::::: 1446e1df9eb183fdf81c3f0715402f1d7595d4cb kernel: Implement selective syscall userspace redirection
:::::: TO: Gabriel Krisman Bertazi <krisman(a)collabora.com>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tip:tmp.tmp2 16/364] include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread_info'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: afd3aae51f9e55c5e72f86f9344a7e73aa1039f1 [16/364] sched/headers: Move task->thread_info to per_task()
config: riscv-nommu_k210_defconfig (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=af...
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 afd3aae51f9e55c5e72f86f9344a7e73aa1039f1
# 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(a)intel.com>
All errors (new ones prefixed by >>):
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:18,
from arch/riscv/kernel/asm-offsets.c:10:
include/asm-generic/preempt.h: In function 'preempt_count_ptr':
include/asm-generic/preempt.h:16:31: error: invalid type argument of '->' (have 'int')
16 | return ¤t_thread_info()->preempt_count;
| ^~
include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
69 | return !--*preempt_count_ptr() && tif_need_resched();
| ^~~~~~~~~~~~~~~~
In file included from include/linux/compiler_types.h:85,
from <command-line>:
include/asm-generic/mmiowb.h: In function 'mmiowb_set_pending':
arch/riscv/include/asm/smp.h:61:54: error: invalid type argument of '->' (have 'int')
61 | #define raw_smp_processor_id() (current_thread_info()->cpu)
| ^~
include/linux/compiler-gcc.h:35:26: note: in definition of macro 'RELOC_HIDE'
35 | (typeof(ptr)) (__ptr + (off)); \
| ^~~
include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:25: note: in expansion of macro 'per_cpu_offset'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:40: note: in expansion of macro 'raw_smp_processor_id'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:44:53: note: in expansion of macro '__my_cpu_offset'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~
include/linux/percpu-defs.h:242:2: note: in expansion of macro 'arch_raw_cpu_ptr'
242 | arch_raw_cpu_ptr(ptr); \
| ^~~~~~~~~~~~~~~~
include/asm-generic/mmiowb.h:30:26: note: in expansion of macro 'raw_cpu_ptr'
30 | #define __mmiowb_state() raw_cpu_ptr(&__mmiowb_state)
| ^~~~~~~~~~~
include/asm-generic/mmiowb.h:37:28: note: in expansion of macro '__mmiowb_state'
37 | struct mmiowb_state *ms = __mmiowb_state();
| ^~~~~~~~~~~~~~
include/asm-generic/mmiowb.h: In function 'mmiowb_spin_lock':
arch/riscv/include/asm/smp.h:61:54: error: invalid type argument of '->' (have 'int')
61 | #define raw_smp_processor_id() (current_thread_info()->cpu)
| ^~
include/linux/compiler-gcc.h:35:26: note: in definition of macro 'RELOC_HIDE'
35 | (typeof(ptr)) (__ptr + (off)); \
| ^~~
include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:25: note: in expansion of macro 'per_cpu_offset'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:40: note: in expansion of macro 'raw_smp_processor_id'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:44:53: note: in expansion of macro '__my_cpu_offset'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~
include/linux/percpu-defs.h:242:2: note: in expansion of macro 'arch_raw_cpu_ptr'
242 | arch_raw_cpu_ptr(ptr); \
| ^~~~~~~~~~~~~~~~
include/asm-generic/mmiowb.h:30:26: note: in expansion of macro 'raw_cpu_ptr'
30 | #define __mmiowb_state() raw_cpu_ptr(&__mmiowb_state)
| ^~~~~~~~~~~
include/asm-generic/mmiowb.h:45:28: note: in expansion of macro '__mmiowb_state'
45 | struct mmiowb_state *ms = __mmiowb_state();
| ^~~~~~~~~~~~~~
include/asm-generic/mmiowb.h: In function 'mmiowb_spin_unlock':
arch/riscv/include/asm/smp.h:61:54: error: invalid type argument of '->' (have 'int')
61 | #define raw_smp_processor_id() (current_thread_info()->cpu)
| ^~
include/linux/compiler-gcc.h:35:26: note: in definition of macro 'RELOC_HIDE'
35 | (typeof(ptr)) (__ptr + (off)); \
| ^~~
include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:25: note: in expansion of macro 'per_cpu_offset'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:40: note: in expansion of macro 'raw_smp_processor_id'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:44:53: note: in expansion of macro '__my_cpu_offset'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~
include/linux/percpu-defs.h:242:2: note: in expansion of macro 'arch_raw_cpu_ptr'
242 | arch_raw_cpu_ptr(ptr); \
| ^~~~~~~~~~~~~~~~
include/asm-generic/mmiowb.h:30:26: note: in expansion of macro 'raw_cpu_ptr'
30 | #define __mmiowb_state() raw_cpu_ptr(&__mmiowb_state)
| ^~~~~~~~~~~
include/asm-generic/mmiowb.h:51:28: note: in expansion of macro '__mmiowb_state'
51 | struct mmiowb_state *ms = __mmiowb_state();
| ^~~~~~~~~~~~~~
In file included from arch/riscv/kernel/asm-offsets.c:9:
arch/riscv/kernel/asm-offsets.c: In function 'asm_offsets':
>> include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread_info'
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:32:2: note: in expansion of macro 'OFFSET'
32 | OFFSET(TASK_TI_FLAGS, task_struct, thread_info.flags);
| ^~~~~~
>> include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread_info'
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:33:2: note: in expansion of macro 'OFFSET'
33 | OFFSET(TASK_TI_PREEMPT_COUNT, task_struct, thread_info.preempt_count);
| ^~~~~~
>> include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread_info'
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:34:2: note: in expansion of macro 'OFFSET'
34 | OFFSET(TASK_TI_KERNEL_SP, task_struct, thread_info.kernel_sp);
| ^~~~~~
>> include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread_info'
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:35:2: note: in expansion of macro 'OFFSET'
35 | OFFSET(TASK_TI_USER_SP, task_struct, thread_info.user_sp);
| ^~~~~~
>> include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread_info'
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:36:2: note: in expansion of macro 'OFFSET'
36 | OFFSET(TASK_TI_CPU, task_struct, thread_info.cpu);
| ^~~~~~
cc1: some warnings being treated as errors
--
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:18,
from arch/riscv/kernel/asm-offsets.c:10:
include/asm-generic/preempt.h: In function 'preempt_count_ptr':
include/asm-generic/preempt.h:16:31: error: invalid type argument of '->' (have 'int')
16 | return ¤t_thread_info()->preempt_count;
| ^~
include/asm-generic/preempt.h: In function '__preempt_count_dec_and_test':
include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror=implicit-function-declaration]
69 | return !--*preempt_count_ptr() && tif_need_resched();
| ^~~~~~~~~~~~~~~~
In file included from include/linux/compiler_types.h:85,
from <command-line>:
include/asm-generic/mmiowb.h: In function 'mmiowb_set_pending':
arch/riscv/include/asm/smp.h:61:54: error: invalid type argument of '->' (have 'int')
61 | #define raw_smp_processor_id() (current_thread_info()->cpu)
| ^~
include/linux/compiler-gcc.h:35:26: note: in definition of macro 'RELOC_HIDE'
35 | (typeof(ptr)) (__ptr + (off)); \
| ^~~
include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:25: note: in expansion of macro 'per_cpu_offset'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:40: note: in expansion of macro 'raw_smp_processor_id'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:44:53: note: in expansion of macro '__my_cpu_offset'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~
include/linux/percpu-defs.h:242:2: note: in expansion of macro 'arch_raw_cpu_ptr'
242 | arch_raw_cpu_ptr(ptr); \
| ^~~~~~~~~~~~~~~~
include/asm-generic/mmiowb.h:30:26: note: in expansion of macro 'raw_cpu_ptr'
30 | #define __mmiowb_state() raw_cpu_ptr(&__mmiowb_state)
| ^~~~~~~~~~~
include/asm-generic/mmiowb.h:37:28: note: in expansion of macro '__mmiowb_state'
37 | struct mmiowb_state *ms = __mmiowb_state();
| ^~~~~~~~~~~~~~
include/asm-generic/mmiowb.h: In function 'mmiowb_spin_lock':
arch/riscv/include/asm/smp.h:61:54: error: invalid type argument of '->' (have 'int')
61 | #define raw_smp_processor_id() (current_thread_info()->cpu)
| ^~
include/linux/compiler-gcc.h:35:26: note: in definition of macro 'RELOC_HIDE'
35 | (typeof(ptr)) (__ptr + (off)); \
| ^~~
include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:25: note: in expansion of macro 'per_cpu_offset'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:40: note: in expansion of macro 'raw_smp_processor_id'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:44:53: note: in expansion of macro '__my_cpu_offset'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~
include/linux/percpu-defs.h:242:2: note: in expansion of macro 'arch_raw_cpu_ptr'
242 | arch_raw_cpu_ptr(ptr); \
| ^~~~~~~~~~~~~~~~
include/asm-generic/mmiowb.h:30:26: note: in expansion of macro 'raw_cpu_ptr'
30 | #define __mmiowb_state() raw_cpu_ptr(&__mmiowb_state)
| ^~~~~~~~~~~
include/asm-generic/mmiowb.h:45:28: note: in expansion of macro '__mmiowb_state'
45 | struct mmiowb_state *ms = __mmiowb_state();
| ^~~~~~~~~~~~~~
include/asm-generic/mmiowb.h: In function 'mmiowb_spin_unlock':
arch/riscv/include/asm/smp.h:61:54: error: invalid type argument of '->' (have 'int')
61 | #define raw_smp_processor_id() (current_thread_info()->cpu)
| ^~
include/linux/compiler-gcc.h:35:26: note: in definition of macro 'RELOC_HIDE'
35 | (typeof(ptr)) (__ptr + (off)); \
| ^~~
include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:25: note: in expansion of macro 'per_cpu_offset'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:40: note: in expansion of macro 'raw_smp_processor_id'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:44:53: note: in expansion of macro '__my_cpu_offset'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~
include/linux/percpu-defs.h:242:2: note: in expansion of macro 'arch_raw_cpu_ptr'
242 | arch_raw_cpu_ptr(ptr); \
| ^~~~~~~~~~~~~~~~
include/asm-generic/mmiowb.h:30:26: note: in expansion of macro 'raw_cpu_ptr'
30 | #define __mmiowb_state() raw_cpu_ptr(&__mmiowb_state)
| ^~~~~~~~~~~
include/asm-generic/mmiowb.h:51:28: note: in expansion of macro '__mmiowb_state'
51 | struct mmiowb_state *ms = __mmiowb_state();
| ^~~~~~~~~~~~~~
In file included from arch/riscv/kernel/asm-offsets.c:9:
arch/riscv/kernel/asm-offsets.c: In function 'asm_offsets':
>> include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread_info'
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:32:2: note: in expansion of macro 'OFFSET'
32 | OFFSET(TASK_TI_FLAGS, task_struct, thread_info.flags);
| ^~~~~~
>> include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread_info'
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:33:2: note: in expansion of macro 'OFFSET'
33 | OFFSET(TASK_TI_PREEMPT_COUNT, task_struct, thread_info.preempt_count);
| ^~~~~~
>> include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread_info'
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:34:2: note: in expansion of macro 'OFFSET'
34 | OFFSET(TASK_TI_KERNEL_SP, task_struct, thread_info.kernel_sp);
| ^~~~~~
>> include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread_info'
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:35:2: note: in expansion of macro 'OFFSET'
35 | OFFSET(TASK_TI_USER_SP, task_struct, thread_info.user_sp);
| ^~~~~~
>> include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'thread_info'
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:36:2: note: in expansion of macro 'OFFSET'
36 | OFFSET(TASK_TI_CPU, task_struct, thread_info.cpu);
| ^~~~~~
cc1: some warnings being treated as errors
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 +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(a)bytedance.com>
:::::: CC: Miguel Ojeda <miguel.ojeda.sandonis(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[ragnatech:media-next 68/328] drivers/media/dvb-frontends/rtl2832_sdr.o: warning: objtool: rtl2832_sdr_s_fmt_sdr_cap() falls through to next function rtl2832_sdr_set_adc.cold()
by kernel test robot
Hi Hans,
FYI, the error/warning still remains.
tree: git://git.ragnatech.se/linux media-next
head: 4c6e0976295add7f0ed94d276c04a3d6f1ea8f83
commit: b2cd0b31ed896c1a6a423019ed3633e890a7f997 [68/328] media: rtl2832_sdr/vivid/airspy/hackrf/msi2500: drop memset of fmt.sdr.reserved
config: x86_64-randconfig-g001-20200309 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add ragnatech git://git.ragnatech.se/linux
git fetch --no-tags ragnatech media-next
git checkout b2cd0b31ed896c1a6a423019ed3633e890a7f997
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/media/dvb-frontends/rtl2832_sdr.o: warning: objtool: rtl2832_sdr_s_fmt_sdr_cap() falls through to next function rtl2832_sdr_set_adc.cold()
drivers/media/dvb-frontends/rtl2832_sdr.o: warning: objtool: rtl2832_sdr_try_fmt_sdr_cap() falls through to next function rtl2832_sdr_start_streaming.cold()
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[omap-audio:peter/linux-next-wip 56/62] sound/soc/ti/omap-mcasp.c:603:7: warning: variable 'fclk_rate' set but not used
by kernel test robot
tree: https://github.com/omap-audio/linux-audio peter/linux-next-wip
head: 4267b3ab8fe441bf25983bf8288fd3025f67702f
commit: 179ec2bc789e81f433d7749acfe9a3a7dbf182e4 [56/62] omap: mcasp: add omap-mcasp.* and add to Kconfig, Makefile
config: x86_64-randconfig-a011-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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/omap-audio/linux-audio/commit/179ec2bc789e81f433d7749a...
git remote add omap-audio https://github.com/omap-audio/linux-audio
git fetch --no-tags omap-audio peter/linux-next-wip
git checkout 179ec2bc789e81f433d7749acfe9a3a7dbf182e4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> sound/soc/ti/omap-mcasp.c:603:7: warning: variable 'fclk_rate' set but not used [-Wunused-but-set-variable]
long fclk_rate;
^
1 warning generated.
vim +/fclk_rate +603 sound/soc/ti/omap-mcasp.c
598
599 static int asoc_mcasp_probe(struct platform_device *pdev)
600 {
601 struct omap_mcasp *mcasp;
602 struct resource *res;
> 603 long fclk_rate;
604 int ret = 0;
605
606 mcasp = devm_kzalloc(&pdev->dev, sizeof(struct omap_mcasp), GFP_KERNEL);
607 if (!mcasp) {
608 dev_err(&pdev->dev, "cannot allocate memory\n");
609 return -ENOMEM;
610 }
611
612 spin_lock_init(&mcasp->lock);
613
614 omap_mcasp_dai_dma_params[0].filter_data = "axevt";
615
616 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
617 if (!res) {
618 dev_err(&pdev->dev, "no resource\n");
619 return -ENODEV;
620 }
621
622 mcasp->base = devm_ioremap_resource(&pdev->dev, res);
623 if (!mcasp->base) {
624 dev_err(&pdev->dev, "cannot remap\n");
625 return -ENOMEM;
626 }
627
628 mcasp->irq = platform_get_irq(pdev, 0);
629 if (mcasp->irq < 0) {
630 dev_err(&pdev->dev, "invalid IRQ number\n");
631 return mcasp->irq;
632 }
633
634 ret = devm_request_threaded_irq(&pdev->dev, mcasp->irq, NULL,
635 omap_mcasp_irq_handler,
636 IRQF_ONESHOT, "McASP", mcasp);
637 if (ret) {
638 dev_err(mcasp->dev, "IRQ request failed\n");
639 return ret;
640 }
641
642 mcasp->fclk = clk_get(&pdev->dev, "fck");
643 if (!mcasp->fclk) {
644 dev_err(mcasp->dev, "cant get fck\n");
645 return -ENODEV;
646 }
647
648 pm_runtime_enable(&pdev->dev);
649 pm_runtime_get_sync(&pdev->dev);
650
651 fclk_rate = clk_get_rate(mcasp->fclk);
652
653 platform_set_drvdata(pdev, mcasp);
654 mcasp->dev = &pdev->dev;
655
656 ret = snd_soc_register_component(&pdev->dev, &omap_mcasp_component,
657 &omap_mcasp_dai, 1);
658 if (ret < 0)
659 goto err_dai;
660
661 pm_runtime_put_sync(&pdev->dev);
662
663 return sdma_pcm_platform_register(&pdev->dev, "axevt", NULL);;
664
665 err_dai:
666 pm_runtime_put_sync(&pdev->dev);
667 pm_runtime_disable(&pdev->dev);
668 return ret;
669 }
670
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[omap-audio:peter/linux-next-wip 18/62] sound/soc/codecs/tas2555.c:96:6: warning: variable 'ret' set but not used
by kernel test robot
tree: https://github.com/omap-audio/linux-audio peter/linux-next-wip
head: 4267b3ab8fe441bf25983bf8288fd3025f67702f
commit: c70019344211309f0ac94f87d76b661f609a50d4 [18/62] ASoC: Initial driver for TAS2555 Smart Amplifier
config: x86_64-randconfig-a011-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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/omap-audio/linux-audio/commit/c70019344211309f0ac94f87...
git remote add omap-audio https://github.com/omap-audio/linux-audio
git fetch --no-tags omap-audio peter/linux-next-wip
git checkout c70019344211309f0ac94f87d76b661f609a50d4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> sound/soc/codecs/tas2555.c:96:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
int ret;
^
1 warning generated.
vim +/ret +96 sound/soc/codecs/tas2555.c
90
91 static unsigned int tas2555_read(struct snd_soc_component *component,
92 unsigned int reg)
93 {
94 struct tas2555_priv *tas2555 = snd_soc_component_get_drvdata(component);
95 unsigned int value = 0;
> 96 int ret;
97
98 dev_dbg(component->dev, "%s: BOOK:PAGE:REG %u:%u:%u\n", __func__,
99 TAS2555_BOOK_ID(reg), TAS2555_PAGE_ID(reg),
100 TAS2555_PAGE_REG(reg));
101 tas2555_change_book(tas2555, TAS2555_BOOK_ID(reg));
102 ret = regmap_read(tas2555->regmap, TAS2555_BOOK_REG(reg), &value);
103 return value;
104 }
105
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months