[tip:tmp.tmp2 176/364] arch/arm/include/asm/ucontext.h:25:32: error: 'sigset_t' undeclared here (not in a function); did you mean 'size_t'?

From: kernel test robot
Date: Sun Jun 13 2021 - 16:41:22 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: be65473fb5b77d57d8955beffd5aa370cfdae467 [176/364] sched/headers, rcu: Remove <linux/sched/signal.h> dependency from <linux/rcuwait.h>
config: arm-spear13xx_defconfig (attached as .config)
compiler: arm-linux-gnueabi-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=be65473fb5b77d57d8955beffd5aa370cfdae467
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 be65473fb5b77d57d8955beffd5aa370cfdae467
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm

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

All errors (new ones prefixed by >>):

| ^~
include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:38:62: error: 'const struct task_struct' has no member named 'stack'
38 | # define task_thread_info(task) ((struct thread_info *)(task)->stack)
| ^~
include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:38:62: error: 'const struct task_struct' has no member named 'stack'
38 | # define task_thread_info(task) ((struct thread_info *)(task)->stack)
| ^~
include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:38:62: error: 'const struct task_struct' has no member named 'stack'
38 | # define task_thread_info(task) ((struct thread_info *)(task)->stack)
| ^~
include/linux/compiler_types.h:279:13: note: in definition of macro '__unqual_scalar_typeof'
279 | _Generic((x), \
| ^
include/asm-generic/rwonce.h:50:2: note: in expansion of macro '__READ_ONCE'
50 | __READ_ONCE(x); \
| ^~~~~~~~~~~
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
In file included from ./arch/arm/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:248,
from arch/arm/kernel/asm-offsets.c:10:
include/linux/sched/thread_info_api.h:38:62: error: 'const struct task_struct' has no member named 'stack'
38 | # define task_thread_info(task) ((struct thread_info *)(task)->stack)
| ^~
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
In file included from arch/arm/kernel/signal.h:1,
from arch/arm/kernel/asm-offsets.c:28:
arch/arm/include/asm/ucontext.h: At top level:
>> arch/arm/include/asm/ucontext.h:21:2: error: unknown type name 'stack_t'
21 | stack_t uc_stack;
| ^~~~~~~
>> arch/arm/include/asm/ucontext.h:22:20: error: field 'uc_mcontext' has incomplete type
22 | struct sigcontext uc_mcontext;
| ^~~~~~~~~~~
>> arch/arm/include/asm/ucontext.h:23:2: error: unknown type name 'sigset_t'
23 | sigset_t uc_sigmask;
| ^~~~~~~~
>> arch/arm/include/asm/ucontext.h:25:32: error: 'sigset_t' undeclared here (not in a function); did you mean 'size_t'?
25 | int __unused[32 - (sizeof (sigset_t) / sizeof (int))];
| ^~~~~~~~
| size_t
In file included from arch/arm/kernel/asm-offsets.c:28:
>> arch/arm/kernel/signal.h:9:17: error: field 'info' has incomplete type
9 | struct siginfo info;
| ^~~~
In file included from arch/arm/kernel/asm-offsets.c:26:
arch/arm/kernel/asm-offsets.c: In function 'main':
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)
| ^~~~~~~~~~~~~~~~~~~
arch/arm/kernel/asm-offsets.c:41:28: note: in expansion of macro 'offsetof'
41 | DEFINE(TSK_STACK_CANARY, offsetof(struct task_struct, stack_canary));
| ^~~~~~~~
cc1: some warnings being treated as errors
--
| ^~
include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:38:62: error: 'const struct task_struct' has no member named 'stack'
38 | # define task_thread_info(task) ((struct thread_info *)(task)->stack)
| ^~
include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:38:62: error: 'const struct task_struct' has no member named 'stack'
38 | # define task_thread_info(task) ((struct thread_info *)(task)->stack)
| ^~
include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:38:62: error: 'const struct task_struct' has no member named 'stack'
38 | # define task_thread_info(task) ((struct thread_info *)(task)->stack)
| ^~
include/linux/compiler_types.h:279:13: note: in definition of macro '__unqual_scalar_typeof'
279 | _Generic((x), \
| ^
include/asm-generic/rwonce.h:50:2: note: in expansion of macro '__READ_ONCE'
50 | __READ_ONCE(x); \
| ^~~~~~~~~~~
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
In file included from ./arch/arm/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:248,
from arch/arm/kernel/asm-offsets.c:10:
include/linux/sched/thread_info_api.h:38:62: error: 'const struct task_struct' has no member named 'stack'
38 | # define task_thread_info(task) ((struct thread_info *)(task)->stack)
| ^~
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
In file included from arch/arm/kernel/signal.h:1,
from arch/arm/kernel/asm-offsets.c:28:
arch/arm/include/asm/ucontext.h: At top level:
>> arch/arm/include/asm/ucontext.h:21:2: error: unknown type name 'stack_t'
21 | stack_t uc_stack;
| ^~~~~~~
>> arch/arm/include/asm/ucontext.h:22:20: error: field 'uc_mcontext' has incomplete type
22 | struct sigcontext uc_mcontext;
| ^~~~~~~~~~~
>> arch/arm/include/asm/ucontext.h:23:2: error: unknown type name 'sigset_t'
23 | sigset_t uc_sigmask;
| ^~~~~~~~
>> arch/arm/include/asm/ucontext.h:25:32: error: 'sigset_t' undeclared here (not in a function); did you mean 'size_t'?
25 | int __unused[32 - (sizeof (sigset_t) / sizeof (int))];
| ^~~~~~~~
| size_t
In file included from arch/arm/kernel/asm-offsets.c:28:
>> arch/arm/kernel/signal.h:9:17: error: field 'info' has incomplete type
9 | struct siginfo info;
| ^~~~
In file included from arch/arm/kernel/asm-offsets.c:26:
arch/arm/kernel/asm-offsets.c: In function 'main':
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)
| ^~~~~~~~~~~~~~~~~~~
arch/arm/kernel/asm-offsets.c:41:28: note: in expansion of macro 'offsetof'
41 | DEFINE(TSK_STACK_CANARY, offsetof(struct task_struct, stack_canary));
| ^~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/arm/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.
--
| ^~
include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:38:62: error: 'const struct task_struct' has no member named 'stack'
38 | # define task_thread_info(task) ((struct thread_info *)(task)->stack)
| ^~
include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:38:62: error: 'const struct task_struct' has no member named 'stack'
38 | # define task_thread_info(task) ((struct thread_info *)(task)->stack)
| ^~
include/linux/compiler_types.h:308:9: note: in definition of macro '__compiletime_assert'
308 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert'
328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
include/linux/sched/thread_info_api.h:38:62: error: 'const struct task_struct' has no member named 'stack'
38 | # define task_thread_info(task) ((struct thread_info *)(task)->stack)
| ^~
include/linux/compiler_types.h:279:13: note: in definition of macro '__unqual_scalar_typeof'
279 | _Generic((x), \
| ^
include/asm-generic/rwonce.h:50:2: note: in expansion of macro '__READ_ONCE'
50 | __READ_ONCE(x); \
| ^~~~~~~~~~~
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
In file included from ./arch/arm/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:248,
from arch/arm/kernel/asm-offsets.c:10:
include/linux/sched/thread_info_api.h:38:62: error: 'const struct task_struct' has no member named 'stack'
38 | # define task_thread_info(task) ((struct thread_info *)(task)->stack)
| ^~
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/sched/thread_info_api.h:194:9: note: in expansion of macro 'READ_ONCE'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~
include/linux/sched/thread_info_api.h:194:19: note: in expansion of macro 'task_thread_info'
194 | return READ_ONCE(task_thread_info(p)->cpu);
| ^~~~~~~~~~~~~~~~
In file included from arch/arm/kernel/signal.h:1,
from arch/arm/kernel/asm-offsets.c:28:
arch/arm/include/asm/ucontext.h: At top level:
>> arch/arm/include/asm/ucontext.h:21:2: error: unknown type name 'stack_t'
21 | stack_t uc_stack;
| ^~~~~~~
>> arch/arm/include/asm/ucontext.h:22:20: error: field 'uc_mcontext' has incomplete type
22 | struct sigcontext uc_mcontext;
| ^~~~~~~~~~~
>> arch/arm/include/asm/ucontext.h:23:2: error: unknown type name 'sigset_t'
23 | sigset_t uc_sigmask;
| ^~~~~~~~
>> arch/arm/include/asm/ucontext.h:25:32: error: 'sigset_t' undeclared here (not in a function); did you mean 'size_t'?
25 | int __unused[32 - (sizeof (sigset_t) / sizeof (int))];
| ^~~~~~~~
| size_t
In file included from arch/arm/kernel/asm-offsets.c:28:
>> arch/arm/kernel/signal.h:9:17: error: field 'info' has incomplete type
9 | struct siginfo info;
| ^~~~
In file included from arch/arm/kernel/asm-offsets.c:26:
arch/arm/kernel/asm-offsets.c: In function 'main':
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)
| ^~~~~~~~~~~~~~~~~~~
arch/arm/kernel/asm-offsets.c:41:28: note: in expansion of macro 'offsetof'
41 | DEFINE(TSK_STACK_CANARY, offsetof(struct task_struct, stack_canary));
| ^~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/arm/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 +25 arch/arm/include/asm/ucontext.h

85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 7
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 8 /*
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 9 * struct sigcontext only has room for the basic registers, but struct
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 10 * ucontext now has room for all registers which need to be saved and
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 11 * restored. Coprocessor registers are stored in uc_regspace. Each
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 12 * coprocessor's saved state should start with a documented 32-bit magic
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 13 * number, followed by a 32-bit word giving the coproccesor's saved size.
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 14 * uc_regspace may be expanded if necessary, although this takes some
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 15 * coordination with glibc.
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 16 */
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 17
^1da177e4c3f41 include/asm-arm/ucontext.h Linus Torvalds 2005-04-16 18 struct ucontext {
^1da177e4c3f41 include/asm-arm/ucontext.h Linus Torvalds 2005-04-16 19 unsigned long uc_flags;
^1da177e4c3f41 include/asm-arm/ucontext.h Linus Torvalds 2005-04-16 20 struct ucontext *uc_link;
^1da177e4c3f41 include/asm-arm/ucontext.h Linus Torvalds 2005-04-16 @21 stack_t uc_stack;
^1da177e4c3f41 include/asm-arm/ucontext.h Linus Torvalds 2005-04-16 @22 struct sigcontext uc_mcontext;
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 @23 sigset_t uc_sigmask;
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 24 /* Allow for uc_sigmask growth. Glibc uses a 1024-bit sigset_t. */
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 @25 int __unused[32 - (sizeof (sigset_t) / sizeof (int))];
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 26 /* Last for extensibility. Eight byte aligned because some
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 27 coprocessors require eight byte alignment. */
85fe068123aa11 include/asm-arm/ucontext.h Daniel Jacobowitz 2006-06-24 28 unsigned long uc_regspace[128] __attribute__((__aligned__(8)));
^1da177e4c3f41 include/asm-arm/ucontext.h Linus Torvalds 2005-04-16 29 };
^1da177e4c3f41 include/asm-arm/ucontext.h Linus Torvalds 2005-04-16 30

:::::: The code at line 25 was first introduced by commit
:::::: 85fe068123aa11d3477ce88c7d365e233b1f2e10 [ARM] 3648/1: Update struct ucontext layout for coprocessor registers

:::::: TO: Daniel Jacobowitz <drow@xxxxxxxxx>
:::::: CC: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip