[tip:tmp.tmp2 308/364] arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 120c6121adeaa43021433af501c9a1111c70d8f8 [308/364] sched/headers, compat: Simplify <linux/compat.h>
config: mips-allyesconfig (attached as .config)
compiler: mips-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=12...
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 120c6121adeaa43021433af501c9a1111c70d8f8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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/compat.h:10,
from arch/mips/kernel/asm-offsets.c:12:
>> arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
42 | old_time32_t st_atime;
| ^~~~~~~~~~~~
arch/mips/include/asm/compat.h:44:2: error: unknown type name 'old_time32_t'
44 | old_time32_t st_mtime;
| ^~~~~~~~~~~~
arch/mips/include/asm/compat.h:46:2: error: unknown type name 'old_time32_t'
46 | old_time32_t st_ctime;
| ^~~~~~~~~~~~
arch/mips/include/asm/compat.h: In function 'is_compat_task':
arch/mips/include/asm/compat.h:188:9: error: implicit declaration of function 'test_thread_flag' [-Werror=implicit-function-declaration]
188 | return test_thread_flag(TIF_32BIT_ADDR);
| ^~~~~~~~~~~~~~~~
In file included from arch/mips/kernel/asm-offsets.c:14:
include/linux/sched.h: At top level:
include/linux/sched.h:475:20: error: array type has incomplete element type 'struct held_lock'
475 | struct held_lock held_locks[MAX_LOCK_DEPTH];
| ^~~~~~~~~~
In file included from ./arch/mips/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:80,
from include/linux/spinlock.h:53,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:8,
from include/linux/mm.h:12,
from arch/mips/kernel/asm-offsets.c:15:
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/mips/kernel/asm-offsets.c:24:
include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll':
include/linux/kvm_host.h:271:35: error: implicit declaration of function 'need_resched'; did you mean 'should_resched'? [-Werror=implicit-function-declaration]
271 | return single_task_running() && !need_resched() && ktime_before(cur, stop);
| ^~~~~~~~~~~~
| should_resched
arch/mips/kernel/asm-offsets.c: At top level:
arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes]
26 | void output_ptreg_defines(void)
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes]
78 | void output_task_defines(void)
| ^~~~~~~~~~~~~~~~~~~
In file included from arch/mips/kernel/asm-offsets.c:16:
arch/mips/kernel/asm-offsets.c: In function 'output_task_defines':
include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack'
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/mips/kernel/asm-offsets.c:82:2: note: in expansion of macro 'OFFSET'
82 | OFFSET(TASK_THREAD_INFO, task_struct, stack);
| ^~~~~~
include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'flags'
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/mips/kernel/asm-offsets.c:83:2: note: in expansion of macro 'OFFSET'
83 | OFFSET(TASK_FLAGS, task_struct, flags);
| ^~~~~~
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/mips/kernel/asm-offsets.c:87:2: note: in expansion of macro 'OFFSET'
87 | OFFSET(TASK_STACK_CANARY, task_struct, stack_canary);
| ^~~~~~
arch/mips/kernel/asm-offsets.c: At top level:
arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes]
93 | void output_thread_info_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:109:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes]
109 | void output_thread_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from arch/mips/kernel/asm-offsets.c:16:
arch/mips/kernel/asm-offsets.c: In function 'output_thread_defines':
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)
| ^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/compat.h:10,
from arch/mips/kernel/asm-offsets.c:12:
>> arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
42 | old_time32_t st_atime;
| ^~~~~~~~~~~~
arch/mips/include/asm/compat.h:44:2: error: unknown type name 'old_time32_t'
44 | old_time32_t st_mtime;
| ^~~~~~~~~~~~
arch/mips/include/asm/compat.h:46:2: error: unknown type name 'old_time32_t'
46 | old_time32_t st_ctime;
| ^~~~~~~~~~~~
arch/mips/include/asm/compat.h: In function 'is_compat_task':
arch/mips/include/asm/compat.h:188:9: error: implicit declaration of function 'test_thread_flag' [-Werror=implicit-function-declaration]
188 | return test_thread_flag(TIF_32BIT_ADDR);
| ^~~~~~~~~~~~~~~~
In file included from arch/mips/kernel/asm-offsets.c:14:
include/linux/sched.h: At top level:
include/linux/sched.h:475:20: error: array type has incomplete element type 'struct held_lock'
475 | struct held_lock held_locks[MAX_LOCK_DEPTH];
| ^~~~~~~~~~
In file included from ./arch/mips/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:80,
from include/linux/spinlock.h:53,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:8,
from include/linux/mm.h:12,
from arch/mips/kernel/asm-offsets.c:15:
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/mips/kernel/asm-offsets.c:24:
include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll':
include/linux/kvm_host.h:271:35: error: implicit declaration of function 'need_resched'; did you mean 'should_resched'? [-Werror=implicit-function-declaration]
271 | return single_task_running() && !need_resched() && ktime_before(cur, stop);
| ^~~~~~~~~~~~
| should_resched
arch/mips/kernel/asm-offsets.c: At top level:
arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes]
26 | void output_ptreg_defines(void)
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes]
78 | void output_task_defines(void)
| ^~~~~~~~~~~~~~~~~~~
In file included from arch/mips/kernel/asm-offsets.c:16:
arch/mips/kernel/asm-offsets.c: In function 'output_task_defines':
include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack'
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/mips/kernel/asm-offsets.c:82:2: note: in expansion of macro 'OFFSET'
82 | OFFSET(TASK_THREAD_INFO, task_struct, stack);
| ^~~~~~
include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'flags'
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/mips/kernel/asm-offsets.c:83:2: note: in expansion of macro 'OFFSET'
83 | OFFSET(TASK_FLAGS, task_struct, flags);
| ^~~~~~
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/mips/kernel/asm-offsets.c:87:2: note: in expansion of macro 'OFFSET'
87 | OFFSET(TASK_STACK_CANARY, task_struct, stack_canary);
| ^~~~~~
arch/mips/kernel/asm-offsets.c: At top level:
arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes]
93 | void output_thread_info_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:109:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes]
109 | void output_thread_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from arch/mips/kernel/asm-offsets.c:16:
arch/mips/kernel/asm-offsets.c: In function 'output_thread_defines':
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)
| ^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/compat.h:10,
from arch/mips/kernel/asm-offsets.c:12:
>> arch/mips/include/asm/compat.h:42:2: error: unknown type name 'old_time32_t'
42 | old_time32_t st_atime;
| ^~~~~~~~~~~~
arch/mips/include/asm/compat.h:44:2: error: unknown type name 'old_time32_t'
44 | old_time32_t st_mtime;
| ^~~~~~~~~~~~
arch/mips/include/asm/compat.h:46:2: error: unknown type name 'old_time32_t'
46 | old_time32_t st_ctime;
| ^~~~~~~~~~~~
arch/mips/include/asm/compat.h: In function 'is_compat_task':
arch/mips/include/asm/compat.h:188:9: error: implicit declaration of function 'test_thread_flag' [-Werror=implicit-function-declaration]
188 | return test_thread_flag(TIF_32BIT_ADDR);
| ^~~~~~~~~~~~~~~~
In file included from arch/mips/kernel/asm-offsets.c:14:
include/linux/sched.h: At top level:
include/linux/sched.h:475:20: error: array type has incomplete element type 'struct held_lock'
475 | struct held_lock held_locks[MAX_LOCK_DEPTH];
| ^~~~~~~~~~
In file included from ./arch/mips/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:80,
from include/linux/spinlock.h:53,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:8,
from include/linux/mm.h:12,
from arch/mips/kernel/asm-offsets.c:15:
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/mips/kernel/asm-offsets.c:24:
include/linux/kvm_host.h: In function 'kvm_vcpu_can_poll':
include/linux/kvm_host.h:271:35: error: implicit declaration of function 'need_resched'; did you mean 'should_resched'? [-Werror=implicit-function-declaration]
271 | return single_task_running() && !need_resched() && ktime_before(cur, stop);
| ^~~~~~~~~~~~
| should_resched
arch/mips/kernel/asm-offsets.c: At top level:
arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes]
26 | void output_ptreg_defines(void)
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes]
78 | void output_task_defines(void)
| ^~~~~~~~~~~~~~~~~~~
In file included from arch/mips/kernel/asm-offsets.c:16:
arch/mips/kernel/asm-offsets.c: In function 'output_task_defines':
include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'stack'
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/mips/kernel/asm-offsets.c:82:2: note: in expansion of macro 'OFFSET'
82 | OFFSET(TASK_THREAD_INFO, task_struct, stack);
| ^~~~~~
include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'flags'
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/mips/kernel/asm-offsets.c:83:2: note: in expansion of macro 'OFFSET'
83 | OFFSET(TASK_FLAGS, task_struct, flags);
| ^~~~~~
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/mips/kernel/asm-offsets.c:87:2: note: in expansion of macro 'OFFSET'
87 | OFFSET(TASK_STACK_CANARY, task_struct, stack_canary);
| ^~~~~~
arch/mips/kernel/asm-offsets.c: At top level:
arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes]
93 | void output_thread_info_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:109:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes]
109 | void output_thread_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from arch/mips/kernel/asm-offsets.c:16:
arch/mips/kernel/asm-offsets.c: In function 'output_thread_defines':
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 +/old_time32_t +42 arch/mips/include/asm/compat.h
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 29
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 30 struct compat_stat {
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 31 compat_dev_t st_dev;
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 32 s32 st_pad1[3];
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 33 compat_ino_t st_ino;
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 34 compat_mode_t st_mode;
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 35 compat_nlink_t st_nlink;
4ee1303a787434 include/asm-mips/compat.h Ralf Baechle 2005-10-29 36 __compat_uid_t st_uid;
4ee1303a787434 include/asm-mips/compat.h Ralf Baechle 2005-10-29 37 __compat_gid_t st_gid;
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 38 compat_dev_t st_rdev;
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 39 s32 st_pad2[2];
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 40 compat_off_t st_size;
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 41 s32 st_pad3;
9afc5eee65ca7d arch/mips/include/asm/compat.h Arnd Bergmann 2018-07-13 @42 old_time32_t st_atime;
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 43 s32 st_atime_nsec;
9afc5eee65ca7d arch/mips/include/asm/compat.h Arnd Bergmann 2018-07-13 44 old_time32_t st_mtime;
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 45 s32 st_mtime_nsec;
9afc5eee65ca7d arch/mips/include/asm/compat.h Arnd Bergmann 2018-07-13 46 old_time32_t st_ctime;
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 47 s32 st_ctime_nsec;
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 48 s32 st_blksize;
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 49 s32 st_blocks;
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 50 s32 st_pad4[14];
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 51 };
^1da177e4c3f41 include/asm-mips/compat.h Linus Torvalds 2005-04-16 52
:::::: The code at line 42 was first introduced by commit
:::::: 9afc5eee65ca7d717a99d6fe8f4adfe32a40940a y2038: globally rename compat_time to old_time32
:::::: TO: Arnd Bergmann <arnd(a)arndb.de>
:::::: CC: Arnd Bergmann <arnd(a)arndb.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 101/364] arch/riscv/kernel/asm-offsets.c:18:2: error: no member named 'thread' in 'task_struct'
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: 3d4d54f073ba51554acd0fc3999027a4e2ee636a [101/364] sched/headers: Remove <linux/seqcount.h> from <linux/sched.h>
config: riscv-randconfig-r016-20210613 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=3d...
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip tmp.tmp2
git checkout 3d4d54f073ba51554acd0fc3999027a4e2ee636a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:328:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:316:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:308:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:19: error: implicit declaration of function 'current_thread_info' [-Werror,-Wimplicit-function-declaration]
return READ_ONCE(current_thread_info()->preempt_count);
^
include/asm-generic/preempt.h:11:42: error: member reference type 'int' is not a pointer
return READ_ONCE(current_thread_info()->preempt_count);
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:279:13: note: expanded from macro '__unqual_scalar_typeof'
_Generic((x), \
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:42: error: member reference type 'int' is not a pointer
return READ_ONCE(current_thread_info()->preempt_count);
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:286:15: note: expanded from macro '__unqual_scalar_typeof'
default: (x)))
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:42: error: member reference type 'int' is not a pointer
return READ_ONCE(current_thread_info()->preempt_count);
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:72: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:9: error: returning 'void' from a function with incompatible result type 'int'
return READ_ONCE(current_thread_info()->preempt_count);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:47:28: note: expanded from macro 'READ_ONCE'
#define READ_ONCE(x) \
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:16:10: error: implicit declaration of function 'current_thread_info' [-Werror,-Wimplicit-function-declaration]
return ¤t_thread_info()->preempt_count;
^
include/asm-generic/preempt.h:16:33: error: member reference type 'int' is not a pointer
return ¤t_thread_info()->preempt_count;
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror,-Wimplicit-function-declaration]
return !--*preempt_count_ptr() && tif_need_resched();
^
include/asm-generic/preempt.h:78:4: error: implicit declaration of function 'tif_need_resched' [-Werror,-Wimplicit-function-declaration]
tif_need_resched());
^
>> arch/riscv/kernel/asm-offsets.c:18:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_RA, task_struct, thread.ra);
^ ~~~~~~
include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
DEFINE(sym, offsetof(struct str, mem))
^ ~~~
include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^ ~~~~~~
include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
^ ~
include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
^~~
arch/riscv/kernel/asm-offsets.c:19:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_SP, task_struct, thread.sp);
^ ~~~~~~
include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
DEFINE(sym, offsetof(struct str, mem))
^ ~~~
include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^ ~~~~~~
include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
^ ~
include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
^~~
arch/riscv/kernel/asm-offsets.c:20:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]);
^ ~~~~~~
include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
DEFINE(sym, offsetof(struct str, mem))
^ ~~~
include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^ ~~~~~~
include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
^ ~
include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
^~~
arch/riscv/kernel/asm-offsets.c:21:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]);
^ ~~~~~~
include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
DEFINE(sym, offsetof(struct str, mem))
^ ~~~
include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^ ~~~~~~
include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
^ ~
include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
^~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
--
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:328:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:316:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:308:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:19: error: implicit declaration of function 'current_thread_info' [-Werror,-Wimplicit-function-declaration]
return READ_ONCE(current_thread_info()->preempt_count);
^
include/asm-generic/preempt.h:11:42: error: member reference type 'int' is not a pointer
return READ_ONCE(current_thread_info()->preempt_count);
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:279:13: note: expanded from macro '__unqual_scalar_typeof'
_Generic((x), \
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:42: error: member reference type 'int' is not a pointer
return READ_ONCE(current_thread_info()->preempt_count);
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:286:15: note: expanded from macro '__unqual_scalar_typeof'
default: (x)))
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:42: error: member reference type 'int' is not a pointer
return READ_ONCE(current_thread_info()->preempt_count);
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:72: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:11:9: error: returning 'void' from a function with incompatible result type 'int'
return READ_ONCE(current_thread_info()->preempt_count);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:47:28: note: expanded from macro 'READ_ONCE'
#define READ_ONCE(x) \
^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/sched.h:19:
In file included from include/linux/mutex.h:19:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:110:
In file included from include/linux/preempt.h:80:
In file included from ./arch/riscv/include/generated/asm/preempt.h:1:
include/asm-generic/preempt.h:16:10: error: implicit declaration of function 'current_thread_info' [-Werror,-Wimplicit-function-declaration]
return ¤t_thread_info()->preempt_count;
^
include/asm-generic/preempt.h:16:33: error: member reference type 'int' is not a pointer
return ¤t_thread_info()->preempt_count;
~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/preempt.h:69:36: error: implicit declaration of function 'tif_need_resched' [-Werror,-Wimplicit-function-declaration]
return !--*preempt_count_ptr() && tif_need_resched();
^
include/asm-generic/preempt.h:78:4: error: implicit declaration of function 'tif_need_resched' [-Werror,-Wimplicit-function-declaration]
tif_need_resched());
^
>> arch/riscv/kernel/asm-offsets.c:18:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_RA, task_struct, thread.ra);
^ ~~~~~~
include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
DEFINE(sym, offsetof(struct str, mem))
^ ~~~
include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^ ~~~~~~
include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
^ ~
include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
^~~
arch/riscv/kernel/asm-offsets.c:19:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_SP, task_struct, thread.sp);
^ ~~~~~~
include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
DEFINE(sym, offsetof(struct str, mem))
^ ~~~
include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^ ~~~~~~
include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
^ ~
include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
^~~
arch/riscv/kernel/asm-offsets.c:20:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]);
^ ~~~~~~
include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
DEFINE(sym, offsetof(struct str, mem))
^ ~~~
include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^ ~~~~~~
include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
^ ~
include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
^~~
arch/riscv/kernel/asm-offsets.c:21:2: error: no member named 'thread' in 'task_struct'
OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]);
^ ~~~~~~
include/linux/kbuild.h:11:14: note: expanded from macro 'OFFSET'
DEFINE(sym, offsetof(struct str, mem))
^ ~~~
include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^ ~~~~~~
include/linux/compiler_types.h:140:35: note: expanded from macro '__compiler_offsetof'
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
^ ~
include/linux/kbuild.h:6:62: note: expanded from macro 'DEFINE'
asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
^~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [scripts/Makefile.build:117: arch/riscv/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1232: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +18 arch/riscv/kernel/asm-offsets.c
3ae9c3cde51abc Souptick Joarder 2020-12-09 15
7db91e57a0acde Palmer Dabbelt 2017-07-10 16 void asm_offsets(void)
7db91e57a0acde Palmer Dabbelt 2017-07-10 17 {
7db91e57a0acde Palmer Dabbelt 2017-07-10 @18 OFFSET(TASK_THREAD_RA, task_struct, thread.ra);
:::::: The code at line 18 was first introduced by commit
:::::: 7db91e57a0acde126a162ababfb1e0ab190130cb RISC-V: Task implementation
:::::: TO: Palmer Dabbelt <palmer(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 12/364] include/linux/sched/thread_info_api.h:33:59: error: macro "current_thread_info" passed 1 arguments, but takes just 0
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: ia64-allmodconfig (attached as .config)
compiler: ia64-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=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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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/ia64/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/sched/signal.h:7,
from arch/ia64/kernel/asm-offsets.c:10:
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/sched/signal.h:12,
from arch/ia64/kernel/asm-offsets.c:10:
include/linux/sched/thread_info_api.h: At top level:
>> include/linux/sched/thread_info_api.h:33:59: error: macro "current_thread_info" passed 1 arguments, but takes just 0
33 | static inline struct thread_info *current_thread_info(void)
| ^
In file included from include/linux/thread_info.h:50,
from include/asm-generic/preempt.h:5,
from ./arch/ia64/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/sched/signal.h:7,
from arch/ia64/kernel/asm-offsets.c:10:
arch/ia64/include/asm/thread_info.h:62: note: macro "current_thread_info" defined here
62 | #define current_thread_info() ((struct thread_info *) 0)
|
In file included from include/linux/sched/signal.h:12,
from arch/ia64/kernel/asm-offsets.c:10:
>> include/linux/sched/thread_info_api.h:34:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
34 | {
| ^
arch/ia64/kernel/asm-offsets.c:23:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
23 | void foo(void)
| ^~~
cc1: some warnings being treated as errors
--
In file included from ./arch/ia64/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/sched/signal.h:7,
from arch/ia64/kernel/asm-offsets.c:10:
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/sched/signal.h:12,
from arch/ia64/kernel/asm-offsets.c:10:
include/linux/sched/thread_info_api.h: At top level:
>> include/linux/sched/thread_info_api.h:33:59: error: macro "current_thread_info" passed 1 arguments, but takes just 0
33 | static inline struct thread_info *current_thread_info(void)
| ^
In file included from include/linux/thread_info.h:50,
from include/asm-generic/preempt.h:5,
from ./arch/ia64/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/sched/signal.h:7,
from arch/ia64/kernel/asm-offsets.c:10:
arch/ia64/include/asm/thread_info.h:62: note: macro "current_thread_info" defined here
62 | #define current_thread_info() ((struct thread_info *) 0)
|
In file included from include/linux/sched/signal.h:12,
from arch/ia64/kernel/asm-offsets.c:10:
>> include/linux/sched/thread_info_api.h:34:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
34 | {
| ^
arch/ia64/kernel/asm-offsets.c:23:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
23 | void foo(void)
| ^~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/ia64/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.
--
In file included from ./arch/ia64/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/sched/signal.h:7,
from arch/ia64/kernel/asm-offsets.c:10:
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/sched/signal.h:12,
from arch/ia64/kernel/asm-offsets.c:10:
include/linux/sched/thread_info_api.h: At top level:
>> include/linux/sched/thread_info_api.h:33:59: error: macro "current_thread_info" passed 1 arguments, but takes just 0
33 | static inline struct thread_info *current_thread_info(void)
| ^
In file included from include/linux/thread_info.h:50,
from include/asm-generic/preempt.h:5,
from ./arch/ia64/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/sched/signal.h:7,
from arch/ia64/kernel/asm-offsets.c:10:
arch/ia64/include/asm/thread_info.h:62: note: macro "current_thread_info" defined here
62 | #define current_thread_info() ((struct thread_info *) 0)
|
In file included from include/linux/sched/signal.h:12,
from arch/ia64/kernel/asm-offsets.c:10:
>> include/linux/sched/thread_info_api.h:34:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
34 | {
| ^
arch/ia64/kernel/asm-offsets.c:23:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
23 | void foo(void)
| ^~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/ia64/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 +/current_thread_info +33 include/linux/sched/thread_info_api.h
31
32 # include <asm/current.h>
> 33 static inline struct thread_info *current_thread_info(void)
> 34 {
35 return task_thread_info(current);
36 }
37
---
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] include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int'
by kernel test robot
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: x86_64-randconfig-b001-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://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=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 >>):
In file included from kernel/bounds.c:10:
In file included from include/linux/page-flags.h:10:
In file included from include/linux/bug.h:5:
In file included from arch/x86/include/asm/bug.h:84:
In file included from include/asm-generic/bug.h:20:
>> include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int'
DECLARE_STATIC_CALL(might_resched, __cond_resched);
^
int
include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition
DECLARE_STATIC_CALL(might_resched, __cond_resched);
^
include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration]
static_call_mod(might_resched)();
^
include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer
static_call_mod(might_resched)();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
1 warning and 3 errors generated.
--
In file included from kernel/bounds.c:10:
In file included from include/linux/page-flags.h:10:
In file included from include/linux/bug.h:5:
In file included from arch/x86/include/asm/bug.h:84:
In file included from include/asm-generic/bug.h:20:
>> include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int'
DECLARE_STATIC_CALL(might_resched, __cond_resched);
^
int
include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition
DECLARE_STATIC_CALL(might_resched, __cond_resched);
^
include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration]
static_call_mod(might_resched)();
^
include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer
static_call_mod(might_resched)();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
1 warning and 3 errors generated.
make[2]: *** [scripts/Makefile.build:117: kernel/bounds.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.
--
In file included from kernel/bounds.c:10:
In file included from include/linux/page-flags.h:10:
In file included from include/linux/bug.h:5:
In file included from arch/x86/include/asm/bug.h:84:
In file included from include/asm-generic/bug.h:20:
>> include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int'
DECLARE_STATIC_CALL(might_resched, __cond_resched);
^
int
include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition
DECLARE_STATIC_CALL(might_resched, __cond_resched);
^
include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration]
static_call_mod(might_resched)();
^
include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer
static_call_mod(might_resched)();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
1 warning and 3 errors generated.
make[2]: *** [scripts/Makefile.build:117: kernel/bounds.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 +/int +72 include/linux/kernel.h
b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 71)
b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 @72) DECLARE_STATIC_CALL(might_resched, __cond_resched);
b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 73)
:::::: The code at line 72 was first introduced by commit
:::::: b965f1ddb47daa5b8b2e2bc9c921431236830367 preempt/dynamic: Provide cond_resched() and might_resched() static calls
:::::: TO: Peter Zijlstra (Intel) <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 351/364] include/linux/fs.h:814:9: warning: implicit declaration of function 'read_seqcount_begin'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 6c13131b6a385211160e6bd8a211e5ed72e780a8 [351/364] sched/headers, locking/seqlocks: Optimize <linux/seqlock.h>
config: 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=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 6c13131b6a385211160e6bd8a211e5ed72e780a8
# save the attached .config to linux build tree
make W=1 ARCH=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 >>):
In file included from include/linux/xarray.h:16,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/efi-stub-helper.c:13:
include/linux/rcuwait.h: In function 'rcuwait_active':
include/linux/rcupdate.h:364:9: error: dereferencing pointer to incomplete type 'struct task_struct'
364 | typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^
include/linux/rcupdate.h:474:31: note: in expansion of macro '__rcu_access_pointer'
474 | #define rcu_access_pointer(p) __rcu_access_pointer((p), __rcu)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/rcuwait.h:33:11: note: in expansion of macro 'rcu_access_pointer'
33 | return !!rcu_access_pointer(w->task);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/efi-stub-helper.c:13:
include/linux/fs.h: In function 'i_size_read':
>> include/linux/fs.h:814:9: warning: implicit declaration of function 'read_seqcount_begin' [-Wimplicit-function-declaration]
814 | seq = read_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:816:11: warning: implicit declaration of function 'read_seqcount_retry' [-Wimplicit-function-declaration]
816 | } while (read_seqcount_retry(&inode->i_size_seqcount, seq));
| ^~~~~~~~~~~~~~~~~~~
include/linux/fs.h: In function 'i_size_write':
>> include/linux/fs.h:839:2: warning: implicit declaration of function 'write_seqcount_begin' [-Wimplicit-function-declaration]
839 | write_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:841:2: warning: implicit declaration of function 'write_seqcount_end' [-Wimplicit-function-declaration]
841 | write_seqcount_end(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/uaccess.h:13,
from include/linux/poll.h:11,
from include/linux/rtc.h:40,
from include/linux/efi.h:20,
from drivers/firmware/efi/libstub/efi-stub-helper.c:13:
drivers/firmware/efi/libstub/efi-stub-helper.c: At top level:
arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
46 | static inline bool pagefault_disabled(void);
| ^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/xarray.h:16,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/gop.c:10:
include/linux/rcuwait.h: In function 'rcuwait_active':
include/linux/rcupdate.h:364:9: error: dereferencing pointer to incomplete type 'struct task_struct'
364 | typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^
include/linux/rcupdate.h:474:31: note: in expansion of macro '__rcu_access_pointer'
474 | #define rcu_access_pointer(p) __rcu_access_pointer((p), __rcu)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/rcuwait.h:33:11: note: in expansion of macro 'rcu_access_pointer'
33 | return !!rcu_access_pointer(w->task);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/gop.c:10:
include/linux/fs.h: In function 'i_size_read':
>> include/linux/fs.h:814:9: warning: implicit declaration of function 'read_seqcount_begin' [-Wimplicit-function-declaration]
814 | seq = read_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:816:11: warning: implicit declaration of function 'read_seqcount_retry' [-Wimplicit-function-declaration]
816 | } while (read_seqcount_retry(&inode->i_size_seqcount, seq));
| ^~~~~~~~~~~~~~~~~~~
include/linux/fs.h: In function 'i_size_write':
>> include/linux/fs.h:839:2: warning: implicit declaration of function 'write_seqcount_begin' [-Wimplicit-function-declaration]
839 | write_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:841:2: warning: implicit declaration of function 'write_seqcount_end' [-Wimplicit-function-declaration]
841 | write_seqcount_end(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/uaccess.h:13,
from include/linux/poll.h:11,
from include/linux/rtc.h:40,
from include/linux/efi.h:20,
from drivers/firmware/efi/libstub/gop.c:10:
drivers/firmware/efi/libstub/gop.c: At top level:
arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
46 | static inline bool pagefault_disabled(void);
| ^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/xarray.h:16,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/secureboot.c:10:
include/linux/rcuwait.h: In function 'rcuwait_active':
include/linux/rcupdate.h:364:9: error: dereferencing pointer to incomplete type 'struct task_struct'
364 | typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^
include/linux/rcupdate.h:474:31: note: in expansion of macro '__rcu_access_pointer'
474 | #define rcu_access_pointer(p) __rcu_access_pointer((p), __rcu)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/rcuwait.h:33:11: note: in expansion of macro 'rcu_access_pointer'
33 | return !!rcu_access_pointer(w->task);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/secureboot.c:10:
include/linux/fs.h: In function 'i_size_read':
>> include/linux/fs.h:814:9: warning: implicit declaration of function 'read_seqcount_begin' [-Wimplicit-function-declaration]
814 | seq = read_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:816:11: warning: implicit declaration of function 'read_seqcount_retry' [-Wimplicit-function-declaration]
816 | } while (read_seqcount_retry(&inode->i_size_seqcount, seq));
| ^~~~~~~~~~~~~~~~~~~
include/linux/fs.h: In function 'i_size_write':
>> include/linux/fs.h:839:2: warning: implicit declaration of function 'write_seqcount_begin' [-Wimplicit-function-declaration]
839 | write_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:841:2: warning: implicit declaration of function 'write_seqcount_end' [-Wimplicit-function-declaration]
841 | write_seqcount_end(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/uaccess.h:13,
from include/linux/poll.h:11,
from include/linux/rtc.h:40,
from include/linux/efi.h:20,
from drivers/firmware/efi/libstub/secureboot.c:10:
drivers/firmware/efi/libstub/secureboot.c: At top level:
arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
46 | static inline bool pagefault_disabled(void);
| ^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/xarray.h:16,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/tpm.c:10:
include/linux/rcuwait.h: In function 'rcuwait_active':
include/linux/rcupdate.h:364:9: error: dereferencing pointer to incomplete type 'struct task_struct'
364 | typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^
include/linux/rcupdate.h:474:31: note: in expansion of macro '__rcu_access_pointer'
474 | #define rcu_access_pointer(p) __rcu_access_pointer((p), __rcu)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/rcuwait.h:33:11: note: in expansion of macro 'rcu_access_pointer'
33 | return !!rcu_access_pointer(w->task);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/tpm.c:10:
include/linux/fs.h: In function 'i_size_read':
>> include/linux/fs.h:814:9: warning: implicit declaration of function 'read_seqcount_begin' [-Wimplicit-function-declaration]
814 | seq = read_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:816:11: warning: implicit declaration of function 'read_seqcount_retry' [-Wimplicit-function-declaration]
816 | } while (read_seqcount_retry(&inode->i_size_seqcount, seq));
| ^~~~~~~~~~~~~~~~~~~
include/linux/fs.h: In function 'i_size_write':
>> include/linux/fs.h:839:2: warning: implicit declaration of function 'write_seqcount_begin' [-Wimplicit-function-declaration]
839 | write_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:841:2: warning: implicit declaration of function 'write_seqcount_end' [-Wimplicit-function-declaration]
841 | write_seqcount_end(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/uaccess.h:13,
from include/linux/poll.h:11,
from include/linux/rtc.h:40,
from include/linux/efi.h:20,
from drivers/firmware/efi/libstub/tpm.c:10:
drivers/firmware/efi/libstub/tpm.c: At top level:
arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
46 | static inline bool pagefault_disabled(void);
| ^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/xarray.h:16,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/file.c:10:
include/linux/rcuwait.h: In function 'rcuwait_active':
include/linux/rcupdate.h:364:9: error: dereferencing pointer to incomplete type 'struct task_struct'
364 | typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^
include/linux/rcupdate.h:474:31: note: in expansion of macro '__rcu_access_pointer'
474 | #define rcu_access_pointer(p) __rcu_access_pointer((p), __rcu)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/rcuwait.h:33:11: note: in expansion of macro 'rcu_access_pointer'
33 | return !!rcu_access_pointer(w->task);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/file.c:10:
include/linux/fs.h: In function 'i_size_read':
>> include/linux/fs.h:814:9: warning: implicit declaration of function 'read_seqcount_begin' [-Wimplicit-function-declaration]
814 | seq = read_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:816:11: warning: implicit declaration of function 'read_seqcount_retry' [-Wimplicit-function-declaration]
816 | } while (read_seqcount_retry(&inode->i_size_seqcount, seq));
| ^~~~~~~~~~~~~~~~~~~
include/linux/fs.h: In function 'i_size_write':
>> include/linux/fs.h:839:2: warning: implicit declaration of function 'write_seqcount_begin' [-Wimplicit-function-declaration]
839 | write_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:841:2: warning: implicit declaration of function 'write_seqcount_end' [-Wimplicit-function-declaration]
841 | write_seqcount_end(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/uaccess.h:13,
from include/linux/poll.h:11,
from include/linux/rtc.h:40,
from include/linux/efi.h:20,
from drivers/firmware/efi/libstub/file.c:10:
drivers/firmware/efi/libstub/file.c: At top level:
arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
46 | static inline bool pagefault_disabled(void);
| ^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/xarray.h:16,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/mem.c:3:
include/linux/rcuwait.h: In function 'rcuwait_active':
include/linux/rcupdate.h:364:9: error: dereferencing pointer to incomplete type 'struct task_struct'
364 | typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^
include/linux/rcupdate.h:474:31: note: in expansion of macro '__rcu_access_pointer'
474 | #define rcu_access_pointer(p) __rcu_access_pointer((p), __rcu)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/rcuwait.h:33:11: note: in expansion of macro 'rcu_access_pointer'
33 | return !!rcu_access_pointer(w->task);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/mem.c:3:
include/linux/fs.h: In function 'i_size_read':
>> include/linux/fs.h:814:9: warning: implicit declaration of function 'read_seqcount_begin' [-Wimplicit-function-declaration]
814 | seq = read_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:816:11: warning: implicit declaration of function 'read_seqcount_retry' [-Wimplicit-function-declaration]
816 | } while (read_seqcount_retry(&inode->i_size_seqcount, seq));
| ^~~~~~~~~~~~~~~~~~~
include/linux/fs.h: In function 'i_size_write':
>> include/linux/fs.h:839:2: warning: implicit declaration of function 'write_seqcount_begin' [-Wimplicit-function-declaration]
839 | write_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:841:2: warning: implicit declaration of function 'write_seqcount_end' [-Wimplicit-function-declaration]
841 | write_seqcount_end(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/uaccess.h:13,
from include/linux/poll.h:11,
from include/linux/rtc.h:40,
from include/linux/efi.h:20,
from drivers/firmware/efi/libstub/mem.c:3:
drivers/firmware/efi/libstub/mem.c: At top level:
arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
46 | static inline bool pagefault_disabled(void);
| ^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/xarray.h:16,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/randomalloc.c:6:
include/linux/rcuwait.h: In function 'rcuwait_active':
include/linux/rcupdate.h:364:9: error: dereferencing pointer to incomplete type 'struct task_struct'
364 | typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^
include/linux/rcupdate.h:474:31: note: in expansion of macro '__rcu_access_pointer'
474 | #define rcu_access_pointer(p) __rcu_access_pointer((p), __rcu)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/rcuwait.h:33:11: note: in expansion of macro 'rcu_access_pointer'
33 | return !!rcu_access_pointer(w->task);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/randomalloc.c:6:
include/linux/fs.h: In function 'i_size_read':
>> include/linux/fs.h:814:9: warning: implicit declaration of function 'read_seqcount_begin' [-Wimplicit-function-declaration]
814 | seq = read_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:816:11: warning: implicit declaration of function 'read_seqcount_retry' [-Wimplicit-function-declaration]
816 | } while (read_seqcount_retry(&inode->i_size_seqcount, seq));
| ^~~~~~~~~~~~~~~~~~~
include/linux/fs.h: In function 'i_size_write':
>> include/linux/fs.h:839:2: warning: implicit declaration of function 'write_seqcount_begin' [-Wimplicit-function-declaration]
839 | write_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:841:2: warning: implicit declaration of function 'write_seqcount_end' [-Wimplicit-function-declaration]
841 | write_seqcount_end(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/uaccess.h:13,
from include/linux/poll.h:11,
from include/linux/rtc.h:40,
from include/linux/efi.h:20,
from drivers/firmware/efi/libstub/randomalloc.c:6:
drivers/firmware/efi/libstub/randomalloc.c: At top level:
arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
46 | static inline bool pagefault_disabled(void);
| ^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/xarray.h:16,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/pci.c:9:
include/linux/rcuwait.h: In function 'rcuwait_active':
include/linux/rcupdate.h:364:9: error: dereferencing pointer to incomplete type 'struct task_struct'
364 | typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^
include/linux/rcupdate.h:474:31: note: in expansion of macro '__rcu_access_pointer'
474 | #define rcu_access_pointer(p) __rcu_access_pointer((p), __rcu)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/rcuwait.h:33:11: note: in expansion of macro 'rcu_access_pointer'
33 | return !!rcu_access_pointer(w->task);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/proc_fs.h:10,
from include/linux/efi.h:19,
from drivers/firmware/efi/libstub/pci.c:9:
include/linux/fs.h: In function 'i_size_read':
>> include/linux/fs.h:814:9: warning: implicit declaration of function 'read_seqcount_begin' [-Wimplicit-function-declaration]
814 | seq = read_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:816:11: warning: implicit declaration of function 'read_seqcount_retry' [-Wimplicit-function-declaration]
816 | } while (read_seqcount_retry(&inode->i_size_seqcount, seq));
| ^~~~~~~~~~~~~~~~~~~
include/linux/fs.h: In function 'i_size_write':
>> include/linux/fs.h:839:2: warning: implicit declaration of function 'write_seqcount_begin' [-Wimplicit-function-declaration]
839 | write_seqcount_begin(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/fs.h:841:2: warning: implicit declaration of function 'write_seqcount_end' [-Wimplicit-function-declaration]
841 | write_seqcount_end(&inode->i_size_seqcount);
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/uaccess.h:13,
from include/linux/poll.h:11,
from include/linux/rtc.h:40,
from include/linux/efi.h:20,
from drivers/firmware/efi/libstub/pci.c:9:
drivers/firmware/efi/libstub/pci.c: At top level:
arch/x86/include/asm/uaccess.h:46:20: warning: 'pagefault_disabled' used but never defined
46 | static inline bool pagefault_disabled(void);
| ^~~~~~~~~~~~~~~~~~
..
vim +/read_seqcount_begin +814 include/linux/fs.h
375e289ea85166c J. Bruce Fields 2012-04-18 796
^1da177e4c3f415 Linus Torvalds 2005-04-16 797 /*
^1da177e4c3f415 Linus Torvalds 2005-04-16 798 * NOTE: in a 32bit arch with a preemptable kernel and
^1da177e4c3f415 Linus Torvalds 2005-04-16 799 * an UP compile the i_size_read/write must be atomic
^1da177e4c3f415 Linus Torvalds 2005-04-16 800 * with respect to the local cpu (unlike with preempt disabled),
^1da177e4c3f415 Linus Torvalds 2005-04-16 801 * but they don't need to be atomic with respect to other cpus like in
^1da177e4c3f415 Linus Torvalds 2005-04-16 802 * true SMP (so they need either to either locally disable irq around
^1da177e4c3f415 Linus Torvalds 2005-04-16 803 * the read or for example on x86 they can be still implemented as a
^1da177e4c3f415 Linus Torvalds 2005-04-16 804 * cmpxchg8b without the need of the lock prefix). For SMP compiles
^1da177e4c3f415 Linus Torvalds 2005-04-16 805 * and 64bit archs it makes no difference if preempt is enabled or not.
^1da177e4c3f415 Linus Torvalds 2005-04-16 806 */
48ed214d10ae3c3 Jan Engelhardt 2006-12-06 807 static inline loff_t i_size_read(const struct inode *inode)
^1da177e4c3f415 Linus Torvalds 2005-04-16 808 {
^1da177e4c3f415 Linus Torvalds 2005-04-16 809 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
^1da177e4c3f415 Linus Torvalds 2005-04-16 810 loff_t i_size;
^1da177e4c3f415 Linus Torvalds 2005-04-16 811 unsigned int seq;
^1da177e4c3f415 Linus Torvalds 2005-04-16 812
^1da177e4c3f415 Linus Torvalds 2005-04-16 813 do {
^1da177e4c3f415 Linus Torvalds 2005-04-16 @814 seq = read_seqcount_begin(&inode->i_size_seqcount);
^1da177e4c3f415 Linus Torvalds 2005-04-16 815 i_size = inode->i_size;
^1da177e4c3f415 Linus Torvalds 2005-04-16 @816 } while (read_seqcount_retry(&inode->i_size_seqcount, seq));
^1da177e4c3f415 Linus Torvalds 2005-04-16 817 return i_size;
2496396fcb44404 Thomas Gleixner 2019-10-15 818 #elif BITS_PER_LONG==32 && defined(CONFIG_PREEMPTION)
^1da177e4c3f415 Linus Torvalds 2005-04-16 819 loff_t i_size;
^1da177e4c3f415 Linus Torvalds 2005-04-16 820
^1da177e4c3f415 Linus Torvalds 2005-04-16 821 preempt_disable();
^1da177e4c3f415 Linus Torvalds 2005-04-16 822 i_size = inode->i_size;
^1da177e4c3f415 Linus Torvalds 2005-04-16 823 preempt_enable();
^1da177e4c3f415 Linus Torvalds 2005-04-16 824 return i_size;
^1da177e4c3f415 Linus Torvalds 2005-04-16 825 #else
^1da177e4c3f415 Linus Torvalds 2005-04-16 826 return inode->i_size;
^1da177e4c3f415 Linus Torvalds 2005-04-16 827 #endif
^1da177e4c3f415 Linus Torvalds 2005-04-16 828 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 829
7762f5a0b709b41 Miklos Szeredi 2006-10-17 830 /*
7762f5a0b709b41 Miklos Szeredi 2006-10-17 831 * NOTE: unlike i_size_read(), i_size_write() does need locking around it
7762f5a0b709b41 Miklos Szeredi 2006-10-17 832 * (normally i_mutex), otherwise on 32bit/SMP an update of i_size_seqcount
7762f5a0b709b41 Miklos Szeredi 2006-10-17 833 * can be lost, resulting in subsequent i_size_read() calls spinning forever.
7762f5a0b709b41 Miklos Szeredi 2006-10-17 834 */
^1da177e4c3f415 Linus Torvalds 2005-04-16 835 static inline void i_size_write(struct inode *inode, loff_t i_size)
^1da177e4c3f415 Linus Torvalds 2005-04-16 836 {
^1da177e4c3f415 Linus Torvalds 2005-04-16 837 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
74e3d1e17b2e11d Fan Du 2013-04-30 838 preempt_disable();
^1da177e4c3f415 Linus Torvalds 2005-04-16 @839 write_seqcount_begin(&inode->i_size_seqcount);
^1da177e4c3f415 Linus Torvalds 2005-04-16 840 inode->i_size = i_size;
^1da177e4c3f415 Linus Torvalds 2005-04-16 @841 write_seqcount_end(&inode->i_size_seqcount);
74e3d1e17b2e11d Fan Du 2013-04-30 842 preempt_enable();
2496396fcb44404 Thomas Gleixner 2019-10-15 843 #elif BITS_PER_LONG==32 && defined(CONFIG_PREEMPTION)
^1da177e4c3f415 Linus Torvalds 2005-04-16 844 preempt_disable();
^1da177e4c3f415 Linus Torvalds 2005-04-16 845 inode->i_size = i_size;
^1da177e4c3f415 Linus Torvalds 2005-04-16 846 preempt_enable();
^1da177e4c3f415 Linus Torvalds 2005-04-16 847 #else
^1da177e4c3f415 Linus Torvalds 2005-04-16 848 inode->i_size = i_size;
^1da177e4c3f415 Linus Torvalds 2005-04-16 849 #endif
^1da177e4c3f415 Linus Torvalds 2005-04-16 850 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 851
:::::: The code at line 814 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.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 108/364] include/linux/sched.h:867:20: error: array type has incomplete element type 'struct held_lock'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: a8bbfcd6b3ffac4ebcc0deb770d628fe6b8f2d05 [108/364] sched/headers: Remove <linux/mutex.h> from <linux/sched.h>
config: riscv-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=a8...
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip tmp.tmp2
git checkout a8bbfcd6b3ffac4ebcc0deb770d628fe6b8f2d05
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=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 arch/riscv/kernel/asm-offsets.c:10:
>> include/linux/sched.h:867:20: error: array type has incomplete element type 'struct held_lock'
867 | struct held_lock held_locks[MAX_LOCK_DEPTH];
| ^~~~~~~~~~
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 arch/riscv/kernel/asm-offsets.c:10:
>> include/linux/sched.h:867:20: error: array type has incomplete element type 'struct held_lock'
867 | struct held_lock held_locks[MAX_LOCK_DEPTH];
| ^~~~~~~~~~
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 arch/riscv/kernel/asm-offsets.c:10:
>> include/linux/sched.h:867:20: error: array type has incomplete element type 'struct held_lock'
867 | struct held_lock held_locks[MAX_LOCK_DEPTH];
| ^~~~~~~~~~
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 +867 include/linux/sched.h
5eca1c10cbaa9c Ingo Molnar 2017-02-06 861
fbb9ce9530fd9b Ingo Molnar 2006-07-03 862 #ifdef CONFIG_LOCKDEP
bdb9441e9c325d Peter Zijlstra 2008-02-25 863 # define MAX_LOCK_DEPTH 48UL
fbb9ce9530fd9b Ingo Molnar 2006-07-03 864 u64 curr_chain_key;
fbb9ce9530fd9b Ingo Molnar 2006-07-03 865 int lockdep_depth;
fbb9ce9530fd9b Ingo Molnar 2006-07-03 866 unsigned int lockdep_recursion;
c7aceaba042702 Richard Kennedy 2008-05-15 @867 struct held_lock held_locks[MAX_LOCK_DEPTH];
fbb9ce9530fd9b Ingo Molnar 2006-07-03 868 #endif
5eca1c10cbaa9c Ingo Molnar 2017-02-06 869
:::::: The code at line 867 was first introduced by commit
:::::: c7aceaba042702538b23cf4e0de1b2891ad8e671 sched: reorder task_struct to reduce padding on 64bit builds
:::::: TO: Richard Kennedy <richard(a)rsk.demon.co.uk>
:::::: CC: Ingo Molnar <mingo(a)elte.hu>
---
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 176/364] include/linux/coredump.h:37:45: warning: 'struct kernel_siginfo' declared inside parameter list will not be visible outside of this definition or declaration
by kernel test robot
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: i386-tinyconfig (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=be...
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
make W=1 ARCH=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 >>):
In file included from arch/x86/events/intel/bts.c:16:
>> include/linux/coredump.h:37:45: warning: 'struct kernel_siginfo' declared inside parameter list will not be visible outside of this definition or declaration
37 | static inline void do_coredump(const struct kernel_siginfo *siginfo) {}
| ^~~~~~~~~~~~~~
vim +37 include/linux/coredump.h
19
20 /*
21 * These are the only things you should do on a core-file: use only these
22 * functions to write out all the necessary info.
23 */
24 struct coredump_params;
25 struct kernel_siginfo;
26 extern void dump_skip_to(struct coredump_params *cprm, unsigned long to);
27 extern void dump_skip(struct coredump_params *cprm, size_t nr);
28 extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
29 extern int dump_align(struct coredump_params *cprm, int align);
30 int dump_user_range(struct coredump_params *cprm, unsigned long start,
31 unsigned long len);
32 int dump_vma_snapshot(struct coredump_params *cprm, int *vma_count,
33 struct core_vma_metadata **vma_meta,
34 size_t *vma_data_size_ptr);
35 extern void do_coredump(const struct kernel_siginfo *siginfo);
36 #else
> 37 static inline void do_coredump(const struct kernel_siginfo *siginfo) {}
38 #endif
39
---
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/latencytop.h:41:30: warning: 'struct ctl_table' declared inside parameter list will not be visible outside of this definition or declaration
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: x86_64-rhel-8.3 (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=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
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 >>):
In file included from include/linux/sched.h:22,
from include/linux/uaccess.h:9,
from kernel/header_test_uaccess.h.c:1:
>> include/linux/latencytop.h:41:30: warning: 'struct ctl_table' declared inside parameter list will not be visible outside of this definition or declaration
41 | int sysctl_latencytop(struct ctl_table *table, int write, void *buffer,
| ^~~~~~~~~
--
In file included from include/linux/sched.h:22,
from include/linux/utsname.h:6,
from drivers/char/random.c:312:
>> include/linux/latencytop.h:41:30: warning: 'struct ctl_table' declared inside parameter list will not be visible outside of this definition or declaration
41 | int sysctl_latencytop(struct ctl_table *table, int write, void *buffer,
| ^~~~~~~~~
drivers/char/random.c:2273:6: warning: no previous prototype for 'add_hwgenerator_randomness' [-Wmissing-prototypes]
2273 | void add_hwgenerator_randomness(const char *buffer, size_t count,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/sched.h:22,
from include/linux/sched/cond_resched.h:9,
from kernel/sched/core.c:9:
>> include/linux/latencytop.h:41:30: warning: 'struct ctl_table' declared inside parameter list will not be visible outside of this definition or declaration
41 | int sysctl_latencytop(struct ctl_table *table, int write, void *buffer,
| ^~~~~~~~~
kernel/sched/core.c:3315:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
3315 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:9032:13: warning: no previous prototype for 'per_task_init' [-Wmissing-prototypes]
9032 | void __init per_task_init(void)
| ^~~~~~~~~~~~~
--
In file included from include/linux/sched.h:22,
from kernel/sched/sched.h:8,
from kernel/sched/fair.c:23:
>> include/linux/latencytop.h:41:30: warning: 'struct ctl_table' declared inside parameter list will not be visible outside of this definition or declaration
41 | int sysctl_latencytop(struct ctl_table *table, int write, void *buffer,
| ^~~~~~~~~
kernel/sched/fair.c:10856:6: warning: no previous prototype for 'task_vruntime_update' [-Wmissing-prototypes]
10856 | void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi)
| ^~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/sched.h:22,
from kernel/sched/sched.h:8,
from kernel/sched/rt.c:6:
>> include/linux/latencytop.h:41:30: warning: 'struct ctl_table' declared inside parameter list will not be visible outside of this definition or declaration
41 | int sysctl_latencytop(struct ctl_table *table, int write, void *buffer,
| ^~~~~~~~~
In file included from <command-line>:
kernel/sched/rt.c: In function 'rt_task_of':
include/linux/kernel.h:706:51: error: 'struct task_struct' has no member named 'rt'
706 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~
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/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:706:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
706 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
include/linux/kernel.h:706:20: note: in expansion of macro '__same_type'
706 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~
kernel/sched/rt.c:121:9: note: in expansion of macro 'container_of'
121 | return container_of(rt_se, struct task_struct, rt);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:140:35: error: 'struct task_struct' has no member named 'rt'
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/kernel.h:709:21: note: in expansion of macro 'offsetof'
709 | ((type *)(__mptr - offsetof(type, member))); })
| ^~~~~~~~
kernel/sched/rt.c:121:9: note: in expansion of macro 'container_of'
121 | return container_of(rt_se, struct task_struct, rt);
| ^~~~~~~~~~~~
kernel/sched/rt.c: At top level:
kernel/sched/rt.c:671:6: warning: no previous prototype for 'sched_rt_bandwidth_account' [-Wmissing-prototypes]
671 | bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/rt.c: In function 'rt_task_of':
kernel/sched/rt.c:122:1: error: control reaches end of non-void function [-Werror=return-type]
122 | }
| ^
cc1: some warnings being treated as errors
--
In file included from include/linux/sched.h:22,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/stop_machine.h:5,
from kernel/trace/ftrace.c:17:
>> include/linux/latencytop.h:41:30: warning: 'struct ctl_table' declared inside parameter list will not be visible outside of this definition or declaration
41 | int sysctl_latencytop(struct ctl_table *table, int write, void *buffer,
| ^~~~~~~~~
kernel/trace/ftrace.c:303:5: warning: no previous prototype for '__register_ftrace_function' [-Wmissing-prototypes]
303 | int __register_ftrace_function(struct ftrace_ops *ops)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/ftrace.c:346:5: warning: no previous prototype for '__unregister_ftrace_function' [-Wmissing-prototypes]
346 | int __unregister_ftrace_function(struct ftrace_ops *ops)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/ftrace.c:585:5: warning: no previous prototype for 'ftrace_profile_pages_init' [-Wmissing-prototypes]
585 | int ftrace_profile_pages_init(struct ftrace_profile_stat *stat)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/ftrace.c:3877:15: warning: no previous prototype for 'arch_ftrace_match_adjust' [-Wmissing-prototypes]
3877 | char * __weak arch_ftrace_match_adjust(char *str, const char *search)
| ^~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/sched.h:22,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from kernel/time/hrtimer.c:25:
>> include/linux/latencytop.h:41:30: warning: 'struct ctl_table' declared inside parameter list will not be visible outside of this definition or declaration
41 | int sysctl_latencytop(struct ctl_table *table, int write, void *buffer,
| ^~~~~~~~~
kernel/time/hrtimer.c:120:21: warning: initialized field overwritten [-Woverride-init]
120 | [CLOCK_REALTIME] = HRTIMER_BASE_REALTIME,
| ^~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:120:21: note: (near initialization for 'hrtimer_clock_to_base_table[0]')
kernel/time/hrtimer.c:121:22: warning: initialized field overwritten [-Woverride-init]
121 | [CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC,
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:121:22: note: (near initialization for 'hrtimer_clock_to_base_table[1]')
kernel/time/hrtimer.c:122:21: warning: initialized field overwritten [-Woverride-init]
122 | [CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME,
| ^~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:122:21: note: (near initialization for 'hrtimer_clock_to_base_table[7]')
kernel/time/hrtimer.c:123:17: warning: initialized field overwritten [-Woverride-init]
123 | [CLOCK_TAI] = HRTIMER_BASE_TAI,
| ^~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:123:17: note: (near initialization for 'hrtimer_clock_to_base_table[11]')
kernel/time/hrtimer.c: In function '__run_hrtimer':
kernel/time/hrtimer.c:1500:7: warning: variable 'expires_in_hardirq' set but not used [-Wunused-but-set-variable]
1500 | bool expires_in_hardirq;
| ^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/sched.h:22,
from include/linux/ptrace.h:6,
from include/uapi/asm-generic/bpf_perf_event.h:4,
from ./arch/x86/include/generated/uapi/asm/bpf_perf_event.h:1,
from include/uapi/linux/bpf_perf_event.h:11,
from kernel/bpf/btf.c:6:
>> include/linux/latencytop.h:41:30: warning: 'struct ctl_table' declared inside parameter list will not be visible outside of this definition or declaration
41 | int sysctl_latencytop(struct ctl_table *table, int write, void *buffer,
| ^~~~~~~~~
kernel/bpf/btf.c: In function 'btf_seq_show':
kernel/bpf/btf.c:5694:22: warning: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
5694 | seq_vprintf((struct seq_file *)show->target, fmt, args);
| ^~~~~~~~
kernel/bpf/btf.c: In function 'btf_snprintf_show':
kernel/bpf/btf.c:5731:2: warning: function 'btf_snprintf_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
5731 | len = vsnprintf(show->target, ssnprintf->len_left, fmt, args);
| ^~~
vim +41 include/linux/latencytop.h
9745512ce79de6 Arjan van de Ven 2008-01-25 40
32927393dc1ccd Christoph Hellwig 2020-04-24 @41 int sysctl_latencytop(struct ctl_table *table, int write, void *buffer,
32927393dc1ccd Christoph Hellwig 2020-04-24 42 size_t *lenp, loff_t *ppos);
cb2517653fccaf Mel Gorman 2016-02-05 43
:::::: The code at line 41 was first introduced by commit
:::::: 32927393dc1ccd60fb2bdc05b9e8e88753761469 sysctl: pass kernel pointers to ->proc_handler
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Al Viro <viro(a)zeniv.linux.org.uk>
---
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 336/364] arch/x86/include/asm/page_types.h:11: warning: "PAGE_SIZE" 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-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=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=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 >>):
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:46,
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_64_types.h:15: warning: "THREAD_SIZE_ORDER" redefined
15 | #define THREAD_SIZE_ORDER (2 + KASAN_STACK_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: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:46,
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_64_types.h:16: warning: "THREAD_SIZE" redefined
16 | #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:46,
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_64_types.h:75: note: this is the location of the previous definition
75 | #define TASK_SIZE (test_thread_flag(TIF_ADDR32) ? \
|
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:46,
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_64_types.h:15: warning: "THREAD_SIZE_ORDER" redefined
15 | #define THREAD_SIZE_ORDER (2 + KASAN_STACK_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: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:46,
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_64_types.h:16: warning: "THREAD_SIZE" redefined
16 | #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:46,
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_64_types.h:75: note: this is the location of the previous definition
75 | #define TASK_SIZE (test_thread_flag(TIF_ADDR32) ? \
|
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 +/PAGE_SIZE +11 arch/x86/include/asm/page_types.h
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 8
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 9 /* PAGE_SHIFT determines the page size */
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 10 #define PAGE_SHIFT 12
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 @11 #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 12 #define PAGE_MASK (~(PAGE_SIZE-1))
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 13
70f1528747651b Kirill A. Shutemov 2015-11-30 14 #define PMD_PAGE_SIZE (_AC(1, UL) << PMD_SHIFT)
70f1528747651b Kirill A. Shutemov 2015-11-30 15 #define PMD_PAGE_MASK (~(PMD_PAGE_SIZE-1))
70f1528747651b Kirill A. Shutemov 2015-11-30 16
70f1528747651b Kirill A. Shutemov 2015-11-30 17 #define PUD_PAGE_SIZE (_AC(1, UL) << PUD_SHIFT)
70f1528747651b Kirill A. Shutemov 2015-11-30 18 #define PUD_PAGE_MASK (~(PUD_PAGE_SIZE-1))
70f1528747651b Kirill A. Shutemov 2015-11-30 19
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 20 #define __VIRTUAL_MASK ((1UL << __VIRTUAL_MASK_SHIFT) - 1)
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 21
70f1528747651b Kirill A. Shutemov 2015-11-30 22 /* Cast *PAGE_MASK to a signed type so that it is sign-extended if
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 23 virtual addresses are 32-bits but physical addresses are larger
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 24 (ie, 32-bit PAE). */
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 25 #define PHYSICAL_PAGE_MASK (((signed long)PAGE_MASK) & __PHYSICAL_MASK)
70f1528747651b Kirill A. Shutemov 2015-11-30 26 #define PHYSICAL_PMD_PAGE_MASK (((signed long)PMD_PAGE_MASK) & __PHYSICAL_MASK)
70f1528747651b Kirill A. Shutemov 2015-11-30 27 #define PHYSICAL_PUD_PAGE_MASK (((signed long)PUD_PAGE_MASK) & __PHYSICAL_MASK)
832102671855f7 Toshi Kani 2015-09-17 28
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 29 #define HPAGE_SHIFT PMD_SHIFT
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 30 #define HPAGE_SIZE (_AC(1,UL) << HPAGE_SHIFT)
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 31 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 32 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 33
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 34 #define HUGE_MAX_HSTATE 2
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 35
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 @36 #define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
51c78eb3f0eb03 Jeremy Fitzhardinge 2009-02-08 37
:::::: The code at line 11 was first introduced by commit
:::::: 51c78eb3f0eb033f9fb4f2316851df1d9b07b953 x86: create _types.h counterparts for page*.h
:::::: TO: Jeremy Fitzhardinge <jeremy(a)goop.org>
:::::: CC: Jeremy Fitzhardinge <jeremy.fitzhardinge(a)citrix.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 176/364] arch/arm/include/asm/ucontext.h:25:32: error: 'sigset_t' undeclared here (not in a function); did you mean 'size_t'?
by kernel test robot
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=be...
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(a)intel.com>
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(a)false.org>
:::::: CC: Russell King <rmk+kernel(a)arm.linux.org.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months