[tip:sched/core 7/15] runqslower.bpf.c:77:12: error: no member named 'state' in 'struct task_struct'

From: kernel test robot
Date: Fri Jun 25 2021 - 07:47:02 EST

Hi Peter,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
head: adf3c31e18b765ea24eba7b0c1efc076b8ee3d55
commit: 2f064a59a11ff9bc22e52e9678bc601404c7cb34 [7/15] sched: Change task_struct::state
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=2f064a59a11ff9bc22e52e9678bc601404c7cb34
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip sched/core
git checkout 2f064a59a11ff9bc22e52e9678bc601404c7cb34
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64

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

All errors (new ones prefixed by >>):

>> runqslower.bpf.c:77:12: error: no member named 'state' in 'struct task_struct'
if (prev->state == TASK_RUNNING)
~~~~ ^
1 error generated.

0-DAY CI Kernel Test Service, Intel Corporation

Attachment: .config.gz
Description: application/gzip