Hi Mathieu,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on tip/x86/asm]
[also build test WARNING 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: nds32-randconfig-c023-20200615 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
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 >>, old ones prefixed by <<):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from arch/nds32/kernel/asm-offsets.c:4:
include/linux/sched.h: In function 'sched_pair_cpu_set_notify_resume':
include/linux/sched.h:1913:13: error: 'struct task_struct' has no member named
'pair_cpu'
1913 | if (current->pair_cpu >= 0)
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
| ^~~~
<< from include/linux/sched.h:14,
> include/linux/sched.h:1913:2: note: in expansion of macro
'if'
1913 | if (current->pair_cpu >= 0)
| ^~
include/linux/sched.h:1913:13: error: 'struct task_struct' has no member named
'pair_cpu'
1913 | if (current->pair_cpu >= 0)
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
| ^~~~
<< from include/linux/sched.h:14,
> include/linux/sched.h:1913:2: note: in expansion of macro
'if'
1913 | if (current->pair_cpu >= 0)
| ^~
include/linux/sched.h:1913:13: error: 'struct task_struct' has no member named
'pair_cpu'
1913 | if (current->pair_cpu >= 0)
| ^~
include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
69 | (cond) ? | ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
<< from include/linux/sched.h:14,
> include/linux/sched.h:1913:2: note: in expansion of macro
'if'
1913 | if (current->pair_cpu >= 0)
| ^~
include/linux/sched.h: In function 'sched_pair_cpu_handle_notify_resume':
include/linux/sched.h:1928:13: error: 'struct task_struct' has no member named
'pair_cpu'
1928 | if (current->pair_cpu >= 0)
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
| ^~~~
include/linux/sched.h:1928:2: note: in expansion of macro 'if'
1928 | if (current->pair_cpu >= 0)
| ^~
include/linux/sched.h:1928:13: error: 'struct task_struct' has no member named
'pair_cpu'
1928 | if (current->pair_cpu >= 0)
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
| ^~~~
include/linux/sched.h:1928:2: note: in expansion of macro 'if'
1928 | if (current->pair_cpu >= 0)
| ^~
include/linux/sched.h:1928:13: error: 'struct task_struct' has no member named
'pair_cpu'
1928 | if (current->pair_cpu >= 0)
| ^~
include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
69 | (cond) ? | ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
include/linux/sched.h:1928:2: note: in expansion of macro 'if'
1928 | if (current->pair_cpu >= 0)
| ^~
In file included from arch/nds32/kernel/asm-offsets.c:4:
include/linux/sched.h: In function 'sched_pair_cpu_fork':
include/linux/sched.h:1938:3: error: 'struct task_struct' has no member named
'pair_cpu'
1938 | t->pair_cpu = -1;
| ^~
include/linux/sched.h:1939:3: error: 'struct task_struct' has no member named
'pair_cpu_need_worker'
1939 | t->pair_cpu_need_worker = 0;
| ^~
include/linux/sched.h:1940:3: error: 'struct task_struct' has no member named
'pair_cpu_worker_active'
1940 | t->pair_cpu_worker_active = 0;
| ^~
include/linux/sched.h:1941:3: error: 'struct task_struct' has no member named
'pair_cpu_queued_work'
1941 | t->pair_cpu_queued_work = 0;
| ^~
include/linux/sched.h:1942:11: error: 'struct task_struct' has no member named
'pair_cpu_work'
1942 | memset(&t->pair_cpu_work, 0, sizeof(t->pair_cpu_work));
| ^~
include/linux/sched.h:1942:39: error: 'struct task_struct' has no member named
'pair_cpu_work'
1942 | memset(&t->pair_cpu_work, 0, sizeof(t->pair_cpu_work));
| ^~
make[2]: *** [scripts/Makefile.build:100: arch/nds32/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1141: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:180: sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/if +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
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org