From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mingo-tip:sched/headers 90/2574] kernel/sched/deadline.c:1883:50: sparse: sparse: cast removes address space '__rcu' of expression
Date: Mon, 21 Feb 2022 11:44:14 +0800 [thread overview]
Message-ID: <202202211135.6YTPVoRB-lkp@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 39e8a0edc8fae20758051dadf7846849edc18b88
commit: d58c0a66fcb697b448eee902e4d8faa3ebe21c0d [90/2574] headers/deps: sched/deadline: Move task->dl to per_task
config: sparc64-randconfig-s031-20220220 (https://download.01.org/0day-ci/archive/20220221/202202211135.6YTPVoRB-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=d58c0a66fcb697b448eee902e4d8faa3ebe21c0d
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout d58c0a66fcb697b448eee902e4d8faa3ebe21c0d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> kernel/sched/deadline.c:1883:50: sparse: sparse: cast removes address space '__rcu' of expression
kernel/sched/deadline.c:1114: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:1114:23: sparse: expected struct task_struct *p
kernel/sched/deadline.c:1114:23: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:1243: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:1243:38: sparse: expected struct task_struct *curr
kernel/sched/deadline.c:1243:38: sparse: got struct task_struct [noderef] __rcu *curr
kernel/sched/deadline.c:1738:9: sparse: sparse: cast removes address space '__rcu' of expression
kernel/sched/deadline.c:2587:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/deadline.c:2587:22: sparse: struct task_struct [noderef] __rcu *
kernel/sched/deadline.c:2587:22: sparse: struct task_struct *
kernel/sched/deadline.c:1142:24: sparse: sparse: context imbalance in 'dl_task_timer' - wrong count at exit
kernel/sched/deadline.c:1383:24: sparse: sparse: context imbalance in 'inactive_task_timer' - wrong count at exit
kernel/sched/deadline.c: note: in included file:
kernel/sched/sched.h:2036:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2036:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2036:25: sparse: struct task_struct *
kernel/sched/sched.h:2036:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:2036:25: sparse: struct task_struct [noderef] __rcu *
kernel/sched/sched.h:2036:25: sparse: struct task_struct *
vim +/__rcu +1883 kernel/sched/deadline.c
1875
1876 /*
1877 * Only called when both the current and waking task are -deadline
1878 * tasks.
1879 */
1880 static void check_preempt_curr_dl(struct rq *rq, struct task_struct *p,
1881 int flags)
1882 {
> 1883 if (dl_entity_preempt(&per_task(p, dl), &per_task(rq->curr, dl))) {
1884 resched_curr(rq);
1885 return;
1886 }
1887
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-02-21 3:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202202211135.6YTPVoRB-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.