[peterz-queue:sched/wip-freezer 4/6] kernel/ptrace.c:69:35: error: use of undeclared identifier 'task'

From: kernel test robot
Date: Thu Oct 07 2021 - 04:54:41 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/wip-freezer
head: 0e2f83a04e7aec955e7b3c759564e51e56450b25
commit: a0e4dbb5aa2a5180d38c539a15f49dce51fe39c7 [4/6] ptrace: Track __TASK_TRACED state in p->ptrace
config: hexagon-randconfig-r045-20211007 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 58b68e70ebf6308f982426a2618782f473218eed)
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/peterz/queue.git/commit/?id=a0e4dbb5aa2a5180d38c539a15f49dce51fe39c7
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/wip-freezer
git checkout a0e4dbb5aa2a5180d38c539a15f49dce51fe39c7
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> kernel/ptrace.c:69:35: error: use of undeclared identifier 'task'
lockdep_assert_task_sighand_held(task);
^
1 error generated.


vim +/task +69 kernel/ptrace.c

66
67 void ptrace_signal_wake_up(struct task_struct *t, bool resume)
68 {
> 69 lockdep_assert_task_sighand_held(task);
70
71 if (resume)
72 t->ptrace &= ~PT_STOPPED_MASK;
73 signal_wake_up_state(t, resume ? __TASK_TRACED : 0);
74 }
75

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip