[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202501101452.wa7SRR7Q-lkp@intel.com>
Date: Fri, 10 Jan 2025 14:34:52 +0800
From: kernel test robot <lkp@...el.com>
To: Andrea Righi <arighi@...dia.com>, Tejun Heo <tj@...nel.org>,
David Vernet <void@...ifault.com>,
Changwoo Min <changwoo@...lia.com>
Cc: oe-kbuild-all@...ts.linux.dev, Ingo Molnar <mingo@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Juri Lelli <juri.lelli@...hat.com>,
Vincent Guittot <vincent.guittot@...aro.org>,
Dietmar Eggemann <dietmar.eggemann@....com>,
Steven Rostedt <rostedt@...dmis.org>,
Ben Segall <bsegall@...gle.com>, Mel Gorman <mgorman@...e.de>,
Valentin Schneider <vschneid@...hat.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v5] sched_ext: Refresh scx idle state during idle-to-idle
transitions
Hi Andrea,
kernel test robot noticed the following build warnings:
[auto build test WARNING on tip/sched/core]
[also build test WARNING on linus/master v6.13-rc6 next-20250109]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Andrea-Righi/sched_ext-Refresh-scx-idle-state-during-idle-to-idle-transitions/20250109-182533
base: tip/sched/core
patch link: https://lore.kernel.org/r/20250109101952.443769-1-arighi%40nvidia.com
patch subject: [PATCH v5] sched_ext: Refresh scx idle state during idle-to-idle transitions
config: x86_64-randconfig-121-20250110 (https://download.01.org/0day-ci/archive/20250110/202501101452.wa7SRR7Q-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250110/202501101452.wa7SRR7Q-lkp@intel.com/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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501101452.wa7SRR7Q-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
kernel/sched/build_policy.c: note: in included file:
>> kernel/sched/idle.c:480:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/idle.c:480:22: sparse: struct task_struct [noderef] __rcu *
kernel/sched/idle.c:480:22: sparse: struct task_struct *
kernel/sched/build_policy.c: note: in included file:
kernel/sched/rt.c:851:70: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/rt.c:851:70: sparse: struct task_struct [noderef] __rcu *
kernel/sched/rt.c:851:70: sparse: struct task_struct *
kernel/sched/rt.c:2336:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/rt.c:2336:25: sparse: struct task_struct *
kernel/sched/rt.c:2336:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/rt.c:531:55: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *donor @@ got struct task_struct [noderef] __rcu *donor @@
kernel/sched/rt.c:531:55: sparse: expected struct task_struct *donor
kernel/sched/rt.c:531:55: sparse: got struct task_struct [noderef] __rcu *donor
kernel/sched/rt.c:991:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *donor @@ got struct task_struct [noderef] __rcu *donor @@
kernel/sched/rt.c:991:39: sparse: expected struct task_struct *donor
kernel/sched/rt.c:991:39: sparse: got struct task_struct [noderef] __rcu *donor
kernel/sched/rt.c:1529: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:1529:31: sparse: expected struct task_struct *p
kernel/sched/rt.c:1529:31: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/rt.c:1849: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:1849:9: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/rt.c:1849:9: sparse: got struct sched_domain [noderef] __rcu *parent
kernel/sched/rt.c:1549: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:1549:14: sparse: expected struct task_struct *curr
kernel/sched/rt.c:1549:14: sparse: got struct task_struct [noderef] __rcu *
kernel/sched/rt.c:1550:15: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *donor @@ got struct task_struct [noderef] __rcu * @@
kernel/sched/rt.c:1550:15: sparse: expected struct task_struct *donor
kernel/sched/rt.c:1550:15: sparse: got struct task_struct [noderef] __rcu *
kernel/sched/rt.c:1611:45: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *donor @@
kernel/sched/rt.c:1611:45: sparse: expected struct task_struct *p
kernel/sched/rt.c:1611:45: sparse: got struct task_struct [noderef] __rcu *donor
kernel/sched/rt.c:1654:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *donor @@ got struct task_struct [noderef] __rcu *donor @@
kernel/sched/rt.c:1654:39: sparse: expected struct task_struct *donor
kernel/sched/rt.c:1654:39: sparse: got struct task_struct [noderef] __rcu *donor
kernel/sched/rt.c:1674:64: 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:1674:64: sparse: expected struct task_struct *tsk
kernel/sched/rt.c:1674:64: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/rt.c:2018: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:2018:40: sparse: expected struct task_struct *task
kernel/sched/rt.c:2018:40: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/rt.c:2041:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/rt.c:2041:13: sparse: struct task_struct *
kernel/sched/rt.c:2041:13: sparse: struct task_struct [noderef] __rcu *
kernel/sched/rt.c:2387: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:2387:54: sparse: expected struct task_struct *tsk
kernel/sched/rt.c:2387:54: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/rt.c:2389:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *donor @@
kernel/sched/rt.c:2389:40: sparse: expected struct task_struct *p
kernel/sched/rt.c:2389:40: sparse: got struct task_struct [noderef] __rcu *donor
kernel/sched/rt.c:2389:62: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *donor @@
kernel/sched/rt.c:2389:62: sparse: expected struct task_struct *p
kernel/sched/rt.c:2389:62: sparse: got struct task_struct [noderef] __rcu *donor
kernel/sched/build_policy.c: note: in included file:
kernel/sched/deadline.c:2715:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *donor @@
kernel/sched/deadline.c:2715:23: sparse: expected struct task_struct *p
kernel/sched/deadline.c:2715:23: sparse: got struct task_struct [noderef] __rcu *donor
kernel/sched/deadline.c:2725:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/deadline.c:2725:13: sparse: struct task_struct *
kernel/sched/deadline.c:2725:13: sparse: struct task_struct [noderef] __rcu *
kernel/sched/deadline.c:2831:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/deadline.c:2831:25: sparse: struct task_struct *
kernel/sched/deadline.c:2831:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/deadline.c:2357: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:2357:42: sparse: expected struct sched_dl_entity const *b
kernel/sched/deadline.c:2357:42: sparse: got struct sched_dl_entity [noderef] __rcu *
kernel/sched/deadline.c:2368: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:2368:38: sparse: expected struct task_struct *tsk
kernel/sched/deadline.c:2368:38: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:1262:39: 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:1262:39: sparse: expected struct task_struct *p
kernel/sched/deadline.c:1262:39: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:1262:85: 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:1262:85: sparse: expected struct sched_dl_entity const *b
kernel/sched/deadline.c:1262:85: sparse: got struct sched_dl_entity [noderef] __rcu *
kernel/sched/deadline.c:1362:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *donor @@
kernel/sched/deadline.c:1362:23: sparse: expected struct task_struct *p
kernel/sched/deadline.c:1362:23: sparse: got struct task_struct [noderef] __rcu *donor
kernel/sched/deadline.c:1671:31: 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:1671:31: sparse: expected struct task_struct *p
kernel/sched/deadline.c:1671:31: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:1671:70: 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:1671:70: sparse: expected struct sched_dl_entity const *b
kernel/sched/deadline.c:1671:70: sparse: got struct sched_dl_entity [noderef] __rcu *
kernel/sched/deadline.c:1759:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *donor @@ got struct task_struct [noderef] __rcu *donor @@
kernel/sched/deadline.c:1759:39: sparse: expected struct task_struct *donor
kernel/sched/deadline.c:1759:39: sparse: got struct task_struct [noderef] __rcu *donor
kernel/sched/deadline.c:2576: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:2576:9: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/deadline.c:2576:9: sparse: got struct sched_domain [noderef] __rcu *parent
kernel/sched/deadline.c:2242: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:2242:14: sparse: expected struct task_struct *curr
kernel/sched/deadline.c:2242:14: sparse: got struct task_struct [noderef] __rcu *
kernel/sched/deadline.c:2243:15: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *donor @@ got struct task_struct [noderef] __rcu * @@
kernel/sched/deadline.c:2243:15: sparse: expected struct task_struct *donor
kernel/sched/deadline.c:2243:15: sparse: got struct task_struct [noderef] __rcu *
kernel/sched/deadline.c:2318:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *donor @@
kernel/sched/deadline.c:2318:43: sparse: expected struct task_struct *p
kernel/sched/deadline.c:2318:43: sparse: got struct task_struct [noderef] __rcu *donor
kernel/sched/deadline.c:2876: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:2876:38: sparse: expected struct task_struct *tsk
kernel/sched/deadline.c:2876:38: sparse: got struct task_struct [noderef] __rcu *curr
vim +480 kernel/sched/idle.c
465
466 struct task_struct *pick_task_idle(struct rq *rq)
467 {
468 /*
469 * The scx idle state is updated only when the CPU transitions
470 * in/out of SCHED_IDLE, see put_prev_task_idle() and
471 * set_next_task_idle().
472 *
473 * However, the CPU may also exit/enter the idle state while
474 * running the idle task, for example waking up the CPU via
475 * scx_bpf_kick_cpu() without dispatching a task on it.
476 *
477 * In this case we still need to trigger scx_update_idle() to
478 * ensure a proper management of the scx idle state.
479 */
> 480 if (rq->curr == rq->idle)
481 scx_update_idle(rq, true, false);
482 return rq->idle;
483 }
484
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists