tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 9aaeb87ce1e966169a57f53a02ba05b30880ffb8 commit: 81aae789181b5850d77dfdf74d4b85c63f0705e9 [106/10296] sched_ext: Implement scx_bpf_kick_cpu() and task preemption support config: loongarch-randconfig-r131-20240906 (https://download.01.org/0day-ci/archive/20240907/202409070555.1nL3qrXW-lkp@xxxxxxxxx/config) compiler: loongarch64-linux-gcc (GCC) 14.1.0 reproduce: (https://download.01.org/0day-ci/archive/20240907/202409070555.1nL3qrXW-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202409070555.1nL3qrXW-lkp@xxxxxxxxx/ sparse warnings: (new ones prefixed by >>) kernel/sched/build_policy.c: note: in included file: kernel/sched/rt.c:916:70: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/rt.c:916:70: sparse: struct task_struct [noderef] __rcu * kernel/sched/rt.c:916:70: sparse: struct task_struct * kernel/sched/rt.c:2364:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/rt.c:2364:25: sparse: struct task_struct * kernel/sched/rt.c:2364:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/rt.c:1002:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/rt.c:1002:38: sparse: expected struct task_struct *curr kernel/sched/rt.c:1002:38: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/rt.c:1536:31: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/rt.c:1536:31: sparse: expected struct task_struct *p kernel/sched/rt.c:1536:31: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/rt.c:1876:9: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] sd @@ got struct sched_domain [noderef] __rcu *parent @@ kernel/sched/rt.c:1876:9: sparse: expected struct sched_domain *[assigned] sd kernel/sched/rt.c:1876:9: sparse: got struct sched_domain [noderef] __rcu *parent kernel/sched/rt.c:1556:14: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] __rcu * @@ kernel/sched/rt.c:1556:14: sparse: expected struct task_struct *curr kernel/sched/rt.c:1556:14: sparse: got struct task_struct [noderef] __rcu * kernel/sched/rt.c:1621:45: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/rt.c:1621:45: sparse: expected struct task_struct *p kernel/sched/rt.c:1621:45: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/rt.c:1682:67: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *tsk @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/rt.c:1682:67: sparse: expected struct task_struct *tsk kernel/sched/rt.c:1682:67: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/rt.c:2044:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *task @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/rt.c:2044:40: sparse: expected struct task_struct *task kernel/sched/rt.c:2044:40: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/rt.c:2067:13: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/rt.c:2067:13: sparse: struct task_struct * kernel/sched/rt.c:2067:13: sparse: struct task_struct [noderef] __rcu * kernel/sched/rt.c:2417:54: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *tsk @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/rt.c:2417:54: sparse: expected struct task_struct *tsk kernel/sched/rt.c:2417:54: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/rt.c:2419:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/rt.c:2419:40: sparse: expected struct task_struct *p kernel/sched/rt.c:2419:40: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/rt.c:2419:61: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/rt.c:2419:61: sparse: expected struct task_struct *p kernel/sched/rt.c:2419:61: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/build_policy.c: note: in included file: kernel/sched/deadline.c:2401:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/deadline.c:2401:23: sparse: expected struct task_struct *p kernel/sched/deadline.c:2401:23: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/deadline.c:2411:13: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/deadline.c:2411:13: sparse: struct task_struct * kernel/sched/deadline.c:2411:13: sparse: struct task_struct [noderef] __rcu * kernel/sched/deadline.c:2519:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/deadline.c:2519:25: sparse: struct task_struct * kernel/sched/deadline.c:2519:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/deadline.c:2026:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct sched_dl_entity const *b @@ got struct sched_dl_entity [noderef] __rcu * @@ kernel/sched/deadline.c:2026:42: sparse: expected struct sched_dl_entity const *b kernel/sched/deadline.c:2026:42: sparse: got struct sched_dl_entity [noderef] __rcu * kernel/sched/deadline.c:2037:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *tsk @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/deadline.c:2037:38: sparse: expected struct task_struct *tsk kernel/sched/deadline.c:2037:38: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/deadline.c:1220:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/deadline.c:1220:23: sparse: expected struct task_struct *p kernel/sched/deadline.c:1220:23: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/deadline.c:1444:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/deadline.c:1444:38: sparse: expected struct task_struct *curr kernel/sched/deadline.c:1444:38: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/deadline.c:2262:9: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] sd @@ got struct sched_domain [noderef] __rcu *parent @@ kernel/sched/deadline.c:2262:9: sparse: expected struct sched_domain *[assigned] sd kernel/sched/deadline.c:2262:9: sparse: got struct sched_domain [noderef] __rcu *parent kernel/sched/deadline.c:1911:14: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] __rcu * @@ kernel/sched/deadline.c:1911:14: sparse: expected struct task_struct *curr kernel/sched/deadline.c:1911:14: sparse: got struct task_struct [noderef] __rcu * kernel/sched/deadline.c:1987:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/deadline.c:1987:43: sparse: expected struct task_struct *p kernel/sched/deadline.c:1987:43: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/deadline.c:2566:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *tsk @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/deadline.c:2566:38: sparse: expected struct task_struct *tsk kernel/sched/deadline.c:2566:38: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/deadline.c:2568:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/deadline.c:2568:23: sparse: expected struct task_struct *p kernel/sched/deadline.c:2568:23: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/deadline.c:2570:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct sched_dl_entity const *b @@ got struct sched_dl_entity [noderef] __rcu * @@ kernel/sched/deadline.c:2570:44: sparse: expected struct sched_dl_entity const *b kernel/sched/deadline.c:2570:44: sparse: got struct sched_dl_entity [noderef] __rcu * kernel/sched/deadline.c:2745:22: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/deadline.c:2745:22: sparse: struct task_struct [noderef] __rcu * kernel/sched/deadline.c:2745:22: sparse: struct task_struct * kernel/sched/deadline.c:2794:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/build_policy.c: note: in included file: kernel/sched/ext.c:557:25: sparse: sparse: symbol 'scx_has_op' was not declared. Should it be static? kernel/sched/ext.c:657:22: sparse: sparse: symbol 'scx_dump_data' was not declared. Should it be static? kernel/sched/ext.c:1008:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/ext.c:1076:56: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/ext.c:1076:56: sparse: struct task_struct * kernel/sched/ext.c:1076:56: sparse: struct task_struct [noderef] __rcu * kernel/sched/ext.c:1433:35: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/ext.c:1433:35: sparse: expected struct task_struct *p kernel/sched/ext.c:1433:35: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/ext.c:1443:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *from @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/ext.c:1443:38: sparse: expected struct task_struct *from kernel/sched/ext.c:1443:38: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/ext.c:3500:52: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/ext.c:3500:52: sparse: expected struct task_struct *p kernel/sched/ext.c:3500:52: sparse: got struct task_struct [noderef] __rcu *curr >> kernel/sched/ext.c:4158:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct const *p @@ got struct task_struct [noderef] __rcu *curr @@ kernel/sched/ext.c:4158:32: sparse: expected struct task_struct const *p kernel/sched/ext.c:4158:32: sparse: got struct task_struct [noderef] __rcu *curr kernel/sched/ext.c:4588:18: sparse: sparse: symbol 'scx_bpf_kick_cpu' was not declared. Should it be static? kernel/sched/ext.c:5022:33: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/ext.c:5022:33: sparse: struct task_struct [noderef] __rcu * kernel/sched/ext.c:5022:33: sparse: struct task_struct const * kernel/sched/build_policy.c: note: in included file: kernel/sched/syscalls.c:206:22: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/syscalls.c:206:22: sparse: struct task_struct [noderef] __rcu * kernel/sched/syscalls.c:206:22: sparse: struct task_struct * kernel/sched/build_policy.c: note: in included file: kernel/sched/sched.h:2224:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2224:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2224:25: sparse: struct task_struct * kernel/sched/sched.h:2224:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2224:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2224:25: sparse: struct task_struct * kernel/sched/sched.h:2224:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2224:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2224:25: sparse: struct task_struct * kernel/sched/sched.h:2224:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2224:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2224:25: sparse: struct task_struct * kernel/sched/sched.h:2224:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2224:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2224:25: sparse: struct task_struct * kernel/sched/sched.h:2224:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2224:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2224:25: sparse: struct task_struct * kernel/sched/sched.h:2224:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2224:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2224:25: sparse: struct task_struct * kernel/sched/sched.h:2224:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2224:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2224:25: sparse: struct task_struct * kernel/sched/sched.h:2224:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2224:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2224:25: sparse: struct task_struct * kernel/sched/sched.h:2399:9: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2399:9: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2399:9: sparse: struct task_struct * kernel/sched/sched.h:2224:25: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2224:25: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2224:25: sparse: struct task_struct * kernel/sched/sched.h:2399:9: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/sched/sched.h:2399:9: sparse: struct task_struct [noderef] __rcu * kernel/sched/sched.h:2399:9: sparse: struct task_struct * kernel/sched/build_policy.c: note: in included file: kernel/sched/syscalls.c:1426:6: sparse: sparse: context imbalance in 'sched_getaffinity' - wrong count at exit kernel/sched/build_policy.c: note: in included file: kernel/sched/rt.c:1707:15: sparse: sparse: dereference of noderef expression vim +4158 kernel/sched/ext.c 4143 4144 static bool can_skip_idle_kick(struct rq *rq) 4145 { 4146 lockdep_assert_rq_held(rq); 4147 4148 /* 4149 * We can skip idle kicking if @rq is going to go through at least one 4150 * full SCX scheduling cycle before going idle. Just checking whether 4151 * curr is not idle is insufficient because we could be racing 4152 * balance_one() trying to pull the next task from a remote rq, which 4153 * may fail, and @rq may become idle afterwards. 4154 * 4155 * The race window is small and we don't and can't guarantee that @rq is 4156 * only kicked while idle anyway. Skip only when sure. 4157 */ > 4158 return !is_idle_task(rq->curr) && !(rq->scx.flags & SCX_RQ_BALANCING); 4159 } 4160 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki