Hi Mathieu,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/x86/asm]
[also build test ERROR on tip/sched/core]
[cannot apply to linus/master linux/master v5.8-rc1 next-20200616]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Mathieu-Desnoyers/sched_pair_cpu...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
2ce0d7f9766f0e49bb54f149c77bae89464932fb
config: x86_64-allnoconfig (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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
# 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 errors (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/x86/kernel/asm-offsets.c:9:
In file included from include/linux/crypto.h:21:
In file included from include/linux/uaccess.h:5:
> include/linux/sched.h:1913:15: error: no member named
'pair_cpu' in 'struct task_struct'
if (current->pair_cpu >=
0)
~~~~~~~ ^
include/linux/sched.h:1928:15: error: no member named 'pair_cpu' in 'struct
task_struct'
if (current->pair_cpu >= 0)
~~~~~~~ ^
include/linux/sched.h:1938:5: error: no member named 'pair_cpu' in 'struct
task_struct'
t->pair_cpu = -1;
~ ^
> include/linux/sched.h:1939:5: error: no member named
'pair_cpu_need_worker' in 'struct task_struct'
t->pair_cpu_need_worker = 0;
~ ^
> include/linux/sched.h:1940:5: error: no member named
'pair_cpu_worker_active' in 'struct task_struct'
t->pair_cpu_worker_active = 0;
~ ^
> include/linux/sched.h:1941:5: error: no member named
'pair_cpu_queued_work' in 'struct task_struct'
t->pair_cpu_queued_work = 0;
~ ^
> include/linux/sched.h:1942:13: error: no member named
'pair_cpu_work' in 'struct task_struct'
memset(&t->pair_cpu_work, 0, sizeof(t->pair_cpu_work));
~ ^
include/linux/sched.h:1942:41: error: no member named 'pair_cpu_work' in
'struct task_struct'
memset(&t->pair_cpu_work, 0, sizeof(t->pair_cpu_work));
~ ^
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
In file included from include/linux/fs.h:34:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:87:11: warning: array index 3 is past the end of the array (which
contains 1 element) [-Warray-bounds]
return (set->sig[3] | set->sig[2] |
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
In file included from include/linux/fs.h:34:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:87:25: warning: array index 2 is past the end of the array (which
contains 1 element) [-Warray-bounds]
return (set->sig[3] | set->sig[2] |
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
In file included from include/linux/fs.h:34:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:88:4: warning: array index 1 is past the end of the array (which
contains 1 element) [-Warray-bounds]
set->sig[1] | set->sig[0]) == 0;
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
In file included from include/linux/fs.h:34:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:90:11: warning: array index 1 is past the end of the array (which
contains 1 element) [-Warray-bounds]
return (set->sig[1] | set->sig[0]) == 0;
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
In file included from include/linux/fs.h:34:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:103:11: warning: array index 3 is past the end of the array (which
contains 1 element) [-Warray-bounds]
return (set1->sig[3] == set2->sig[3]) &&
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
In file included from include/linux/fs.h:34:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:103:27: warning: array index 3 is past the end of the array (which
contains 1 element) [-Warray-bounds]
return (set1->sig[3] == set2->sig[3]) &&
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:17:
vim +1913 include/linux/sched.h
1910
1911 static inline void sched_pair_cpu_set_notify_resume(struct task_struct *t)
1912 {
1913 if (current->pair_cpu >= 0)
1914 set_tsk_thread_flag(t, TIF_NOTIFY_RESUME);
1915 }
1916
1917 static inline void sched_pair_cpu_preempt(struct task_struct *t)
1918 {
1919 sched_pair_cpu_set_notify_resume(t);
1920 }
1921
1922 void __sched_pair_cpu_handle_notify_resume(struct ksignal *sig,
1923 struct pt_regs *regs);
1924
1925 static inline void sched_pair_cpu_handle_notify_resume(struct ksignal *ksig,
1926 struct pt_regs *regs)
1927 {
1928 if (current->pair_cpu >= 0)
1929 __sched_pair_cpu_handle_notify_resume(ksig, regs);
1930 }
1931
1932 /*
1933 * Clear paired cpu on clone.
1934 */
1935 static inline void sched_pair_cpu_fork(struct task_struct *t,
1936 unsigned long clone_flags)
1937 {
1938 t->pair_cpu = -1;
1939 t->pair_cpu_need_worker = 0;
1940 t->pair_cpu_worker_active = 0;
1941 t->pair_cpu_queued_work = 0;
1942 memset(&t->pair_cpu_work, 0, sizeof(t->pair_cpu_work));
1943 }
1944
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org