From: kernel test robot <lkp@intel.com>
To: Kent Overstreet <kent.overstreet@linux.dev>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [koverstreet-bcachefs:trace_sched_wakeup_backtrace 140/332] fs/bcachefs/data/copygc.c:581:34: sparse: sparse: incorrect type in assignment (different address spaces)
Date: Wed, 16 Sep 2026 13:17:22 +0800 [thread overview]
Message-ID: <202609161357.3wdof49W-lkp@intel.com> (raw)
tree: https://github.com/koverstreet/bcachefs trace_sched_wakeup_backtrace
head: 9e7cbd4ad9c7a7ba461dbba9185628c006e200cd
commit: 88633d63152451a41ce7b7913e49ac6d6107c314 [140/332] bcachefs: Allocator now directly wakes up copygc when necessary
config: openrisc-randconfig-r112-20260915 (https://download.01.org/0day-ci/archive/20260916/202609161357.3wdof49W-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 15.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260916/202609161357.3wdof49W-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609161357.3wdof49W-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> fs/bcachefs/data/copygc.c:581:34: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct [noderef] __rcu *thread @@ got struct task_struct *t @@
fs/bcachefs/data/copygc.c:581:34: sparse: expected struct task_struct [noderef] __rcu *thread
fs/bcachefs/data/copygc.c:581:34: sparse: got struct task_struct *t
>> fs/bcachefs/data/copygc.c:583:42: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *tsk @@ got struct task_struct [noderef] __rcu *thread @@
fs/bcachefs/data/copygc.c:583:42: sparse: expected struct task_struct *tsk
fs/bcachefs/data/copygc.c:583:42: sparse: got struct task_struct [noderef] __rcu *thread
vim +581 fs/bcachefs/data/copygc.c
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 557
e6d1161530bcd63 fs/bcachefs/movinggc.c Kent Overstreet 2020-07-11 558 int bch2_copygc_start(struct bch_fs *c)
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 559 {
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 560 if (c->opts.nochanges)
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 561 return 0;
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 562
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 563 if (bch2_fs_init_fault("copygc_start"))
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 564 return -ENOMEM;
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 565
7705b3d5de918bd fs/bcachefs/data/copygc.c Kent Overstreet 2025-11-29 566 if (!c->copygc.wq &&
7705b3d5de918bd fs/bcachefs/data/copygc.c Kent Overstreet 2025-11-29 567 !(c->copygc.wq = alloc_workqueue("bcachefs_copygc",
7705b3d5de918bd fs/bcachefs/data/copygc.c Kent Overstreet 2025-11-29 568 WQ_HIGHPRI|WQ_FREEZABLE|WQ_MEM_RECLAIM|WQ_CPU_INTENSIVE, 1)))
7705b3d5de918bd fs/bcachefs/data/copygc.c Kent Overstreet 2025-11-29 569 return bch_err_throw(c, ENOMEM_fs_other_alloc);
7705b3d5de918bd fs/bcachefs/data/copygc.c Kent Overstreet 2025-11-29 570
7705b3d5de918bd fs/bcachefs/data/copygc.c Kent Overstreet 2025-11-29 571 if (!c->copygc.thread) {
7705b3d5de918bd fs/bcachefs/data/copygc.c Kent Overstreet 2025-11-29 572 struct task_struct *t =
7705b3d5de918bd fs/bcachefs/data/copygc.c Kent Overstreet 2025-11-29 573 kthread_create(bch2_copygc_thread, c, "bch-copygc/%s", c->name);
7705b3d5de918bd fs/bcachefs/data/copygc.c Kent Overstreet 2025-11-29 574 int ret = PTR_ERR_OR_ZERO(t);
e46c181af9e230c fs/bcachefs/movinggc.c Kent Overstreet 2023-09-11 575 bch_err_msg(c, ret, "creating copygc thread");
cf904c8d964fa47 fs/bcachefs/movinggc.c Kent Overstreet 2023-12-16 576 if (ret)
d4bf5eecd78a90d fs/bcachefs/movinggc.c Kent Overstreet 2022-07-18 577 return ret;
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 578
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 579 get_task_struct(t);
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 580
cb70f3a81f829a0 fs/bcachefs/data/copygc.c Kent Overstreet 2025-11-29 @581 c->copygc.thread = t;
88633d63152451a fs/bcachefs/data/copygc.c Kent Overstreet 2024-10-18 582 rcu_assign_pointer(c->copygc.thread, t);
cb70f3a81f829a0 fs/bcachefs/data/copygc.c Kent Overstreet 2025-11-29 @583 wake_up_process(c->copygc.thread);
7705b3d5de918bd fs/bcachefs/data/copygc.c Kent Overstreet 2025-11-29 584 }
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 585
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 586 return 0;
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 587 }
1c6fdbd8f2465dd fs/bcachefs/movinggc.c Kent Overstreet 2017-03-16 588
:::::: The code at line 581 was first introduced by commit
:::::: cb70f3a81f829a0b9217057bb638905881dc02c1 bcachefs: struct bch_fs_ec, bch_fs_copygc
:::::: TO: Kent Overstreet <kent.overstreet@linux.dev>
:::::: CC: Kent Overstreet <kent.overstreet@linux.dev>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-09-16 5:17 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=202609161357.3wdof49W-lkp@intel.com \
--to=lkp@intel.com \
--cc=kent.overstreet@linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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.