All of lore.kernel.org
 help / color / mirror / Atom feed
* [koverstreet-bcachefs:trace_sched_wakeup_backtrace 140/332] fs/bcachefs/data/copygc.c:581:34: sparse: sparse: incorrect type in assignment (different address spaces)
@ 2026-09-16  5:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-16  5:17 UTC (permalink / raw)
  To: Kent Overstreet; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-16  5:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-16  5:17 [koverstreet-bcachefs:trace_sched_wakeup_backtrace 140/332] fs/bcachefs/data/copygc.c:581:34: sparse: sparse: incorrect type in assignment (different address spaces) kernel test robot

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.