[zen:7.2/prjc 651/740] kernel/sched/alt_sched.h:334:25: sparse: sparse: incompatible types in comparison expression (different address spaces):

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/zen-kernel/zen-kernel 7.2/prjc
head:   b735d8ec47d31db8e62d1925521a44d98c1cac2d
commit: add9dba34cde0a2265b292326f8318bf0fd733ef [651/740] sched/alt: [Sync] 6199f9999a9b sched/cputime: Handle dyntick-idle steal time correctly
config: m68k-randconfig-r122-20260819 (https://download.01.org/0day-ci/archive/20260819/[email protected]/config)
compiler: m68k-linux-gcc (GCC) 13.4.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260819/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
   kernel/sched/build_policy.c: note: in included file (through kernel/sched/sched.h):
>> kernel/sched/alt_sched.h:334:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/alt_sched.h:334:25: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/alt_sched.h:334:25: sparse:    struct task_struct *

vim +334 kernel/sched/alt_sched.h

2f7ec82370cbb7 Alfred Chen 2019-08-19  331  
e6d6a4e78f98f6 Alfred Chen 2026-01-19  332  static inline bool idle_rq(struct rq *rq)
e6d6a4e78f98f6 Alfred Chen 2026-01-19  333  {
e6d6a4e78f98f6 Alfred Chen 2026-01-19 @334  	return rq->curr == rq->idle && !rq->nr_running && !rq->ttwu_pending;
e6d6a4e78f98f6 Alfred Chen 2026-01-19  335  }
e6d6a4e78f98f6 Alfred Chen 2026-01-19  336  

:::::: The code at line 334 was first introduced by commit
:::::: e6d6a4e78f98f667774453eb1b15379f06183e1f sched/alt: [Sync] 1e0a2ba7afb1 sched: Provide idle_rq() helper

:::::: TO: Alfred Chen <[email protected]>
:::::: CC: Alfred Chen <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.