tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
pending-4.4
head: b5141ab6800224d501d7bcea7bdb76f3f25a1b42
commit: 67e0dc920b107be69b59370758e964120fb3aa49 [35/42] ARCv2: save ABI registers across
signal handling
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-4.4
git checkout 67e0dc920b107be69b59370758e964120fb3aa49
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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/arc/include/asm/bug.h:32,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from include/asm-generic/preempt.h:4,
from arch/arc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:19,
from arch/arc/kernel/asm-offsets.c:9:
include/linux/cpumask.h: In function 'cpumask_check':
include/linux/cpumask.h:117:19: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
117 | WARN_ON_ONCE(cpu >= nr_cpumask_bits);
| ^~
include/asm-generic/bug.h:112:27: note: in definition of macro 'WARN_ON_ONCE'
112 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
In file included from include/asm-generic/signal.h:10,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/sched.h:37,
from arch/arc/kernel/asm-offsets.c:9:
arch/arc/include/uapi/asm/sigcontext.h: At top level:
> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field
'v2abi' has incomplete type
20 | struct user_regs_arcv2 v2abi;
| ^~~~~
--
In file included from arch/arc/include/asm/bug.h:32,
from include/linux/bug.h:4,
from include/linux/seq_file.h:6,
from arch/arc/kernel/setup.c:9:
include/linux/cpumask.h: In function 'cpumask_check':
include/linux/cpumask.h:117:19: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
117 | WARN_ON_ONCE(cpu >= nr_cpumask_bits);
| ^~
include/asm-generic/bug.h:112:27: note: in definition of macro 'WARN_ON_ONCE'
112 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
In file included from include/asm-generic/signal.h:10,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/sched.h:37,
from include/linux/uaccess.h:4,
from include/linux/highmem.h:8,
from include/linux/pagemap.h:10,
from arch/arc/include/asm/tlb.h:44,
from arch/arc/kernel/setup.c:23:
arch/arc/include/uapi/asm/sigcontext.h: At top level:
> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field
'v2abi' has incomplete type
20 | struct user_regs_arcv2 v2abi;
| ^~~~~
In file included from include/uapi/linux/stddef.h:1,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/seq_file.h:4,
from arch/arc/kernel/setup.c:9:
include/linux/highmem.h: In function 'kmap_atomic_idx_push':
include/linux/highmem.h:97:13: warning: comparison of integer expressions of different
signedness: 'int' and 'long unsigned int' [-Wsign-compare]
97 | BUG_ON(idx >= KM_TYPE_NR);
| ^~
include/linux/compiler.h:182:42: note: in definition of macro 'unlikely'
182 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/highmem.h:97:2: note: in expansion of macro 'BUG_ON'
97 | BUG_ON(idx >= KM_TYPE_NR);
| ^~~~~~
In file included from arch/arc/include/asm/tlb.h:44,
from arch/arc/kernel/setup.c:23:
include/linux/pagemap.h: In function 'fault_in_multipages_readable':
include/linux/pagemap.h:632:16: warning: variable 'c' set but not used
[-Wunused-but-set-variable]
632 | volatile char c;
| ^
In file included from include/linux/writeback.h:192,
from include/linux/memcontrol.h:30,
from include/linux/swap.h:8,
from include/asm-generic/tlb.h:18,
from arch/arc/include/asm/tlb.h:45,
from arch/arc/kernel/setup.c:23:
include/linux/bio.h: In function 'bio_next_split':
include/linux/bio.h:424:14: warning: comparison of integer expressions of different
signedness: 'int' and 'unsigned int' [-Wsign-compare]
424 | if (sectors >= bio_sectors(bio))
| ^~
--
In file included from arch/arc/include/asm/bug.h:32,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from include/asm-generic/preempt.h:4,
from arch/arc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:59,
from include/linux/interrupt.h:8,
from arch/arc/kernel/irq.c:10:
include/linux/cpumask.h: In function 'cpumask_check':
include/linux/cpumask.h:117:19: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
117 | WARN_ON_ONCE(cpu >= nr_cpumask_bits);
| ^~
include/asm-generic/bug.h:112:27: note: in definition of macro 'WARN_ON_ONCE'
112 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
In file included from include/asm-generic/signal.h:10,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/sched.h:37,
from include/acpi/platform/aclinux.h:79,
from include/acpi/platform/acenv.h:174,
from include/acpi/acpi.h:56,
from include/linux/acpi.h:33,
from include/linux/irqchip.h:14,
from arch/arc/kernel/irq.c:11:
arch/arc/include/uapi/asm/sigcontext.h: At top level:
> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field
'v2abi' has incomplete type
20 | struct user_regs_arcv2 v2abi;
| ^~~~~
arch/arc/kernel/irq.c:21:13: warning: no previous prototype for 'init_IRQ'
[-Wmissing-prototypes]
21 | void __init init_IRQ(void)
| ^~~~~~~~
arch/arc/kernel/irq.c:44:6: warning: no previous prototype for 'arch_do_IRQ'
[-Wmissing-prototypes]
44 | void arch_do_IRQ(unsigned int irq, struct pt_regs *regs)
| ^~~~~~~~~~~
--
In file included from arch/arc/include/asm/bug.h:32,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from include/asm-generic/preempt.h:4,
from arch/arc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from arch/arc/kernel/time.c:32:
include/linux/cpumask.h: In function 'cpumask_check':
include/linux/cpumask.h:117:19: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
117 | WARN_ON_ONCE(cpu >= nr_cpumask_bits);
| ^~
include/asm-generic/bug.h:112:27: note: in definition of macro 'WARN_ON_ONCE'
112 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
In file included from include/asm-generic/signal.h:10,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/sched.h:37,
from arch/arc/kernel/time.c:35:
arch/arc/include/uapi/asm/sigcontext.h: At top level:
> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field
'v2abi' has incomplete type
20 | struct user_regs_arcv2 v2abi;
| ^~~~~
In file included from arch/arc/kernel/time.c:41:
include/linux/clocksource.h:113:77: warning: operand of ?: changes signedness from
'int' to 'long long unsigned int' due to unsignedness of other operand
[-Wsign-compare]
113 | #define CLOCKSOURCE_MASK(bits) (cycle_t)((bits) < 64 ?
((1ULL<<(bits))-1) : -1)
| ^~
arch/arc/kernel/time.c:101:12: note: in expansion of macro 'CLOCKSOURCE_MASK'
101 | .mask = CLOCKSOURCE_MASK(64),
| ^~~~~~~~~~~~~~~~
arch/arc/kernel/time.c: In function 'arc_local_timer_setup':
arch/arc/kernel/time.c:253:6: warning: old-style function definition
[-Wold-style-definition]
253 | void arc_local_timer_setup()
| ^~~~~~~~~~~~~~~~~~~~~
arch/arc/kernel/time.c: At top level:
arch/arc/kernel/time.c:276:13: warning: no previous prototype for 'time_init'
[-Wmissing-prototypes]
276 | void __init time_init(void)
| ^~~~~~~~~
--
In file included from arch/arc/include/asm/bug.h:32,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from include/asm-generic/preempt.h:4,
from arch/arc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:19,
from include/linux/ptrace.h:5,
from arch/arc/kernel/ptrace.c:9:
include/linux/cpumask.h: In function 'cpumask_check':
include/linux/cpumask.h:117:19: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
117 | WARN_ON_ONCE(cpu >= nr_cpumask_bits);
| ^~
include/asm-generic/bug.h:112:27: note: in definition of macro 'WARN_ON_ONCE'
112 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
In file included from include/asm-generic/signal.h:10,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/sched.h:37,
from include/linux/ptrace.h:5,
from arch/arc/kernel/ptrace.c:9:
arch/arc/include/uapi/asm/sigcontext.h: At top level:
> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field
'v2abi' has incomplete type
20 | struct user_regs_arcv2 v2abi;
| ^~~~~
In file included from include/linux/ptrace.h:4,
from arch/arc/kernel/ptrace.c:9:
include/linux/highmem.h: In function 'kmap_atomic_idx_push':
include/linux/highmem.h:97:13: warning: comparison of integer expressions of different
signedness: 'int' and 'long unsigned int' [-Wsign-compare]
97 | BUG_ON(idx >= KM_TYPE_NR);
| ^~
include/linux/compiler.h:182:42: note: in definition of macro 'unlikely'
182 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/highmem.h:97:2: note: in expansion of macro 'BUG_ON'
97 | BUG_ON(idx >= KM_TYPE_NR);
| ^~~~~~
In file included from include/linux/writeback.h:192,
from include/linux/memcontrol.h:30,
from include/linux/tracehook.h:53,
from arch/arc/kernel/ptrace.c:10:
include/linux/bio.h: In function 'bio_next_split':
include/linux/bio.h:424:14: warning: comparison of integer expressions of different
signedness: 'int' and 'unsigned int' [-Wsign-compare]
424 | if (sectors >= bio_sectors(bio))
| ^~
In file included from include/linux/ptrace.h:4,
from arch/arc/kernel/ptrace.c:9:
include/linux/regset.h: In function 'user_regset_copyout':
include/linux/regset.h:227:14: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
227 | BUG_ON(*pos < start_pos);
| ^
include/linux/compiler.h:182:42: note: in definition of macro 'unlikely'
182 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/regset.h:227:2: note: in expansion of macro 'BUG_ON'
227 | BUG_ON(*pos < start_pos);
| ^~~~~~
In file included from arch/arc/kernel/ptrace.c:11:
include/linux/regset.h:228:26: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
228 | if (end_pos < 0 || *pos < end_pos) {
| ^
In file included from include/linux/ptrace.h:4,
from arch/arc/kernel/ptrace.c:9:
include/linux/regset.h: In function 'user_regset_copyin':
include/linux/regset.h:252:14: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
252 | BUG_ON(*pos < start_pos);
| ^
include/linux/compiler.h:182:42: note: in definition of macro 'unlikely'
182 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/regset.h:252:2: note: in expansion of macro 'BUG_ON'
252 | BUG_ON(*pos < start_pos);
| ^~~~~~
In file included from arch/arc/kernel/ptrace.c:11:
include/linux/regset.h:253:26: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
253 | if (end_pos < 0 || *pos < end_pos) {
| ^
In file included from include/linux/ptrace.h:4,
from arch/arc/kernel/ptrace.c:9:
include/linux/regset.h: In function 'user_regset_copyout_zero':
include/linux/regset.h:282:14: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
282 | BUG_ON(*pos < start_pos);
| ^
include/linux/compiler.h:182:42: note: in definition of macro 'unlikely'
182 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/regset.h:282:2: note: in expansion of macro 'BUG_ON'
282 | BUG_ON(*pos < start_pos);
| ^~~~~~
In file included from arch/arc/kernel/ptrace.c:11:
include/linux/regset.h:283:26: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
283 | if (end_pos < 0 || *pos < end_pos) {
| ^
In file included from include/linux/ptrace.h:4,
from arch/arc/kernel/ptrace.c:9:
include/linux/regset.h: In function 'user_regset_copyin_ignore':
include/linux/regset.h:308:14: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
308 | BUG_ON(*pos < start_pos);
| ^
include/linux/compiler.h:182:42: note: in definition of macro 'unlikely'
182 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/regset.h:308:2: note: in expansion of macro 'BUG_ON'
308 | BUG_ON(*pos < start_pos);
| ^~~~~~
In file included from arch/arc/kernel/ptrace.c:11:
include/linux/regset.h:309:26: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
309 | if (end_pos < 0 || *pos < end_pos) {
| ^
arch/arc/kernel/ptrace.c: At top level:
arch/arc/kernel/ptrace.c:237:16: warning: no previous prototype for
'syscall_trace_entry' [-Wmissing-prototypes]
237 | asmlinkage int syscall_trace_entry(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~
arch/arc/kernel/ptrace.c:245:17: warning: no previous prototype for
'syscall_trace_exit' [-Wmissing-prototypes]
245 | asmlinkage void syscall_trace_exit(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~
--
In file included from arch/arc/include/asm/bug.h:32,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from include/asm-generic/preempt.h:4,
from arch/arc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from arch/arc/kernel/process.c:12:
include/linux/cpumask.h: In function 'cpumask_check':
include/linux/cpumask.h:117:19: warning: comparison of integer expressions of different
signedness: 'unsigned int' and 'int' [-Wsign-compare]
117 | WARN_ON_ONCE(cpu >= nr_cpumask_bits);
| ^~
include/asm-generic/bug.h:112:27: note: in definition of macro 'WARN_ON_ONCE'
112 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
In file included from include/asm-generic/signal.h:10,
from arch/arc/include/uapi/asm/signal.h:25,
from include/uapi/linux/signal.h:4,
from include/linux/signal.h:6,
from include/linux/sched.h:37,
from arch/arc/kernel/process.c:13:
arch/arc/include/uapi/asm/sigcontext.h: At top level:
> arch/arc/include/uapi/asm/sigcontext.h:20:25: error: field
'v2abi' has incomplete type
20 | struct user_regs_arcv2 v2abi;
| ^~~~~
In file included from arch/arc/kernel/process.c:19:
include/linux/syscalls.h:180:18: warning: no previous prototype for
'sys_arc_gettls' [-Wmissing-prototypes]
180 | asmlinkage long sys_##sname(void)
| ^~~~
arch/arc/kernel/process.c:39:1: note: in expansion of macro 'SYSCALL_DEFINE0'
39 | SYSCALL_DEFINE0(arc_gettls)
| ^~~~~~~~~~~~~~~
arch/arc/kernel/process.c:213:5: warning: no previous prototype for 'dump_fpu'
[-Wmissing-prototypes]
213 | int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu)
| ^~~~~~~~
In file included from include/linux/perf_event.h:24,
from include/linux/trace_events.h:9,
from include/trace/syscall.h:6,
from include/linux/syscalls.h:81,
from arch/arc/kernel/process.c:19:
arch/arc/include/asm/perf_event.h:127:23: warning: 'arc_pmu_cache_map' defined
but not used [-Wunused-const-variable=]
127 | static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/perf_event.h:95:27: warning: 'arc_pmu_ev_hw_map' defined
but not used [-Wunused-const-variable=]
95 | static const char * const arc_pmu_ev_hw_map[] = {
| ^~~~~~~~~~~~~~~~~
..
vim +/v2abi +20 arch/arc/include/uapi/asm/sigcontext.h
13
14 /*
15 * Signal context structure - contains all info to do with the state
16 * before the signal handler was invoked.
17 */
18 struct sigcontext {
19 struct user_regs_struct regs;
20 struct user_regs_arcv2 v2abi;
21 };
22
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org