[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202401040045.9KKYlmkt-lkp@intel.com>
Date: Thu, 4 Jan 2024 02:25:11 +0800
From: kernel test robot <lkp@...el.com>
To: "Matthew Wilcox (Oracle)" <willy@...radead.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Peter Zijlstra <peterz@...radead.org>
Subject: kernel/sched/fair.c:939:34: sparse: sparse: incorrect type in
argument 1 (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 610a9b8f49fbcf1100716370d3b5f6f884a2835a
commit: 904cbab71dda1689d41a240541179f21ff433c40 sched: Make const-safe
date: 1 year ago
config: arm64-buildonly-randconfig-r004-20230608 (https://download.01.org/0day-ci/archive/20240104/202401040045.9KKYlmkt-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20240104/202401040045.9KKYlmkt-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/202401040045.9KKYlmkt-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> kernel/sched/fair.c:939:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct sched_entity const *se @@ got struct sched_entity [noderef] __rcu * @@
kernel/sched/fair.c:939:34: sparse: expected struct sched_entity const *se
kernel/sched/fair.c:939:34: sparse: got struct sched_entity [noderef] __rcu *
kernel/sched/fair.c:11691: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/fair.c:11691:9: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/fair.c:11691:9: sparse: got struct sched_domain [noderef] __rcu *parent
kernel/sched/fair.c:6110:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] __rcu *curr @@
kernel/sched/fair.c:6110:38: sparse: expected struct task_struct *curr
kernel/sched/fair.c:6110:38: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/fair.c:7343:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] sd @@ got struct sched_domain [noderef] __rcu *parent @@
kernel/sched/fair.c:7343:20: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/fair.c:7343:20: sparse: got struct sched_domain [noderef] __rcu *parent
kernel/sched/fair.c:7518:9: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] tmp @@ got struct sched_domain [noderef] __rcu *parent @@
kernel/sched/fair.c:7518:9: sparse: expected struct sched_domain *[assigned] tmp
kernel/sched/fair.c:7518:9: sparse: got struct sched_domain [noderef] __rcu *parent
kernel/sched/fair.c:7698:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] __rcu *curr @@
kernel/sched/fair.c:7698:38: sparse: expected struct task_struct *curr
kernel/sched/fair.c:7698:38: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/fair.c:7996:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] __rcu *curr @@
kernel/sched/fair.c:7996:38: sparse: expected struct task_struct *curr
kernel/sched/fair.c:7996:38: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/fair.c:9043:40: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct sched_domain *child @@ got struct sched_domain [noderef] __rcu *child @@
kernel/sched/fair.c:9043:40: sparse: expected struct sched_domain *child
kernel/sched/fair.c:9043:40: sparse: got struct sched_domain [noderef] __rcu *child
kernel/sched/fair.c:9608:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/fair.c:9608:22: sparse: struct task_struct [noderef] __rcu *
kernel/sched/fair.c:9608:22: sparse: struct task_struct *
kernel/sched/fair.c:10967: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/fair.c:10967:9: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/fair.c:10967:9: sparse: got struct sched_domain [noderef] __rcu *parent
kernel/sched/fair.c:10626:44: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct sched_domain *sd_parent @@ got struct sched_domain [noderef] __rcu *parent @@
kernel/sched/fair.c:10626:44: sparse: expected struct sched_domain *sd_parent
kernel/sched/fair.c:10626:44: sparse: got struct sched_domain [noderef] __rcu *parent
kernel/sched/fair.c:11063: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/fair.c:11063:9: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/fair.c:11063:9: sparse: got struct sched_domain [noderef] __rcu *parent
kernel/sched/fair.c:6039:35: sparse: sparse: marked inline, but without a definition
kernel/sched/fair.c: note: in included file:
kernel/sched/sched.h:2074:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2074:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2074:25: sparse: struct task_struct *
kernel/sched/sched.h:2232:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2232:9: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2232:9: sparse: struct task_struct *
kernel/sched/sched.h:2074:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2074:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2074:25: sparse: struct task_struct *
kernel/sched/sched.h:2074:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2074:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2074:25: sparse: struct task_struct *
--
kernel/sched/build_policy.c: note: in included file:
kernel/sched/rt.c:961:70: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/rt.c:961:70: sparse: struct task_struct [noderef] __rcu *
kernel/sched/rt.c:961:70: sparse: struct task_struct *
kernel/sched/rt.c:2411:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/rt.c:2411:25: sparse: struct task_struct *
kernel/sched/rt.c:2411:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/rt.c:577:54: 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:577:54: sparse: expected struct task_struct *curr
kernel/sched/rt.c:577:54: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/rt.c:1047: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:1047:38: sparse: expected struct task_struct *curr
kernel/sched/rt.c:1047:38: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/rt.c:1592: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:1592:31: sparse: expected struct task_struct *p
kernel/sched/rt.c:1592:31: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/rt.c:1929: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:1929:9: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/rt.c:1929:9: sparse: got struct sched_domain [noderef] __rcu *parent
kernel/sched/rt.c:1612: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:1612:14: sparse: expected struct task_struct *curr
kernel/sched/rt.c:1612:14: sparse: got struct task_struct [noderef] __rcu *
kernel/sched/rt.c:1677: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:1677:45: sparse: expected struct task_struct *p
kernel/sched/rt.c:1677:45: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/rt.c:1738: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:1738:67: sparse: expected struct task_struct *tsk
kernel/sched/rt.c:1738:67: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/rt.c:2093: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:2093:40: sparse: expected struct task_struct *task
kernel/sched/rt.c:2093:40: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/rt.c:2114:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/rt.c:2114:13: sparse: struct task_struct *
kernel/sched/rt.c:2114:13: sparse: struct task_struct [noderef] __rcu *
kernel/sched/rt.c:2462: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:2462:54: sparse: expected struct task_struct *tsk
kernel/sched/rt.c:2462:54: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/rt.c:2464: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:2464:40: sparse: expected struct task_struct *p
kernel/sched/rt.c:2464:40: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/rt.c:2464: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:2464:61: sparse: expected struct task_struct *p
kernel/sched/rt.c:2464:61: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/build_policy.c: note: in included file:
kernel/sched/deadline.c:2315: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:2315:23: sparse: expected struct task_struct *p
kernel/sched/deadline.c:2315:23: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:2325:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/deadline.c:2325:13: sparse: struct task_struct *
kernel/sched/deadline.c:2325:13: sparse: struct task_struct [noderef] __rcu *
kernel/sched/deadline.c:2433:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/deadline.c:2433:25: sparse: struct task_struct *
kernel/sched/deadline.c:2433:25: sparse: struct task_struct [noderef] __rcu *
>> kernel/sched/deadline.c:1954: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:1954:42: sparse: expected struct sched_dl_entity const *b
kernel/sched/deadline.c:1954:42: sparse: got struct sched_dl_entity [noderef] __rcu *
kernel/sched/deadline.c:1965: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:1965:38: sparse: expected struct task_struct *tsk
kernel/sched/deadline.c:1965:38: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:1182: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:1182:23: sparse: expected struct task_struct *p
kernel/sched/deadline.c:1182:23: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:1309: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:1309:38: sparse: expected struct task_struct *curr
kernel/sched/deadline.c:1309:38: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:2174: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:2174:9: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/deadline.c:2174:9: sparse: got struct sched_domain [noderef] __rcu *parent
kernel/sched/deadline.c:1839: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:1839:14: sparse: expected struct task_struct *curr
kernel/sched/deadline.c:1839:14: sparse: got struct task_struct [noderef] __rcu *
kernel/sched/deadline.c:1915: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:1915:43: sparse: expected struct task_struct *p
kernel/sched/deadline.c:1915:43: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:2478: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:2478:38: sparse: expected struct task_struct *tsk
kernel/sched/deadline.c:2478:38: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:2480: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:2480:23: sparse: expected struct task_struct *p
kernel/sched/deadline.c:2480:23: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:2482: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:2482:44: sparse: expected struct sched_dl_entity const *b
kernel/sched/deadline.c:2482:44: sparse: got struct sched_dl_entity [noderef] __rcu *
kernel/sched/deadline.c:2645:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/deadline.c:2645:22: sparse: struct task_struct [noderef] __rcu *
kernel/sched/deadline.c:2645:22: sparse: struct task_struct *
kernel/sched/build_policy.c: note: in included file:
kernel/sched/sched.h:2074:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2074:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2074:25: sparse: struct task_struct *
kernel/sched/sched.h:2074:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2074:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2074:25: sparse: struct task_struct *
kernel/sched/sched.h:2074:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2074:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2074:25: sparse: struct task_struct *
kernel/sched/sched.h:2074:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2074:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2074:25: sparse: struct task_struct *
kernel/sched/sched.h:2074:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2074:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2074:25: sparse: struct task_struct *
kernel/sched/sched.h:2074:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2074:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2074:25: sparse: struct task_struct *
kernel/sched/sched.h:2074:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2074:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2074:25: sparse: struct task_struct *
vim +939 kernel/sched/fair.c
bf0f6f24a1ece8 kernel/sched_fair.c Ingo Molnar 2007-07-09 936
6e998916dfe327 kernel/sched/fair.c Stanislaw Gruszka 2014-11-12 937 static void update_curr_fair(struct rq *rq)
6e998916dfe327 kernel/sched/fair.c Stanislaw Gruszka 2014-11-12 938 {
6e998916dfe327 kernel/sched/fair.c Stanislaw Gruszka 2014-11-12 @939 update_curr(cfs_rq_of(&rq->curr->se));
6e998916dfe327 kernel/sched/fair.c Stanislaw Gruszka 2014-11-12 940 }
6e998916dfe327 kernel/sched/fair.c Stanislaw Gruszka 2014-11-12 941
:::::: The code at line 939 was first introduced by commit
:::::: 6e998916dfe327e785e7c2447959b2c1a3ea4930 sched/cputime: Fix clock_nanosleep()/clock_gettime() inconsistency
:::::: TO: Stanislaw Gruszka <sgruszka@...hat.com>
:::::: CC: Ingo Molnar <mingo@...nel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists