tree:
https://github.com/weiny2/linux-kernel.git tip-pks-2021-v4-br
head: f2cb2a1537eca13d7a64114f580a1e3a7fb3acc8
commit: 585599523a4df2a1126e0348c1249262a8422efb [8/11] x86/pks: Preserve the PKRS MSR on
context switch
config: i386-randconfig-r021-20210323 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/weiny2/linux-kernel/commit/585599523a4df2a1126e0348c12...
git remote add weiny2
https://github.com/weiny2/linux-kernel.git
git fetch --no-tags weiny2 tip-pks-2021-v4-br
git checkout 585599523a4df2a1126e0348c1249262a8422efb
# 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 errors (new ones prefixed by >>):
arch/x86/kernel/process.c: In function 'flush_thread':
> arch/x86/kernel/process.c:200:2: error: implicit declaration of
function 'pks_init_task'; did you mean 'shm_init_task'?
[-Werror=implicit-function-declaration]
200 | pks_init_task(tsk);
| ^~~~~~~~~~~~~
| shm_init_task
cc1: some warnings being treated as errors
vim +200 arch/x86/kernel/process.c
190
191 void flush_thread(void)
192 {
193 struct task_struct *tsk = current;
194
195 flush_ptrace_hw_breakpoint(tsk);
196 memset(tsk->thread.tls_array, 0, sizeof(tsk->thread.tls_array));
197
198 fpu__clear_all(&tsk->thread.fpu);
199
200 pks_init_task(tsk);
201 }
202
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org