All of lore.kernel.org
 help / color / mirror / Atom feed
* [harry:kvfree-rcu-improvements-rfc-v2r1-wip 9/9] mm/slab_common.c:1360:17: error: implicit declaration of function 'IRQ_WORK_INIT_LAZY'
@ 2026-05-03  5:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-03  5:39 UTC (permalink / raw)
  To: Harry Yoo (Oracle); +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/harry/linux.git kvfree-rcu-improvements-rfc-v2r1-wip
head:   1e4fd024c798fbeff0b5a3c5f55cdcf710367c59
commit: 1e4fd024c798fbeff0b5a3c5f55cdcf710367c59 [9/9] foo
config: i386-allnoconfig (https://download.01.org/0day-ci/archive/20260503/202605031335.uTcGPrgE-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260503/202605031335.uTcGPrgE-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/202605031335.uTcGPrgE-lkp@intel.com/

All errors (new ones prefixed by >>):

   mm/slab_common.c:1356:23: error: implicit declaration of function 'IRQ_WORK_INIT'; did you mean 'IRQ_WORK_VECTOR'? [-Wimplicit-function-declaration]
    1356 |         .defer_free = IRQ_WORK_INIT(defer_kfree_rcu_irq_work_fn),
         |                       ^~~~~~~~~~~~~
         |                       IRQ_WORK_VECTOR
   mm/slab_common.c:1356:23: error: initialization of 'struct llist_node *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   mm/slab_common.c:1356:23: note: (near initialization for 'krc.defer_free.node.llist.next')
   mm/slab_common.c:1356:23: error: initializer element is not constant
   mm/slab_common.c:1356:23: note: (near initialization for 'krc.defer_free.node.llist.next')
   mm/slab_common.c:1358:27: error: initialization of 'struct llist_node *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1358 |         .defer_call_rcu = IRQ_WORK_INIT(defer_call_rcu_irq_work_fn),
         |                           ^~~~~~~~~~~~~
   mm/slab_common.c:1358:27: note: (near initialization for 'krc.defer_call_rcu.node.llist.next')
   mm/slab_common.c:1358:27: error: initializer element is not constant
   mm/slab_common.c:1358:27: note: (near initialization for 'krc.defer_call_rcu.node.llist.next')
>> mm/slab_common.c:1360:17: error: implicit declaration of function 'IRQ_WORK_INIT_LAZY' [-Wimplicit-function-declaration]
    1360 |                 IRQ_WORK_INIT_LAZY(sched_delayed_monitor_irq_work_fn),
         |                 ^~~~~~~~~~~~~~~~~~
   mm/slab_common.c:1360:17: error: initialization of 'struct llist_node *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   mm/slab_common.c:1360:17: note: (near initialization for 'krc.sched_delayed_monitor.node.llist.next')
   mm/slab_common.c:1360:17: error: initializer element is not constant
   mm/slab_common.c:1360:17: note: (near initialization for 'krc.sched_delayed_monitor.node.llist.next')
   mm/slab_common.c:1362:17: error: initialization of 'struct llist_node *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1362 |                 IRQ_WORK_INIT_LAZY(run_page_cache_worker_irq_work_fn),
         |                 ^~~~~~~~~~~~~~~~~~
   mm/slab_common.c:1362:17: note: (near initialization for 'krc.run_page_cache_worker.node.llist.next')
   mm/slab_common.c:1362:17: error: initializer element is not constant
   mm/slab_common.c:1362:17: note: (near initialization for 'krc.run_page_cache_worker.node.llist.next')
   mm/slab_common.c: In function 'defer_kvfree_rcu_barrier':
   mm/slab_common.c:1384:17: error: implicit declaration of function 'irq_work_sync' [-Wimplicit-function-declaration]
    1384 |                 irq_work_sync(&per_cpu_ptr(&krc, cpu)->defer_free);
         |                 ^~~~~~~~~~~~~
   mm/slab_common.c: In function '__schedule_delayed_monitor_work':
   mm/slab_common.c:1810:33: error: implicit declaration of function 'irq_work_queue'; did you mean 'drain_workqueue'? [-Wimplicit-function-declaration]
    1810 |                                 irq_work_queue(&krcp->sched_delayed_monitor);
         |                                 ^~~~~~~~~~~~~~
         |                                 drain_workqueue


vim +/IRQ_WORK_INIT_LAZY +1360 mm/slab_common.c

56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1352) 
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1353) static DEFINE_PER_CPU(struct kfree_rcu_cpu, krc) = {
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1354) 	.lock = __RAW_SPIN_LOCK_UNLOCKED(krc.lock),
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1355) 	.defer_head = LLIST_HEAD_INIT(defer_head),
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1356) 	.defer_free = IRQ_WORK_INIT(defer_kfree_rcu_irq_work_fn),
0f991a4617a587 Harry Yoo (Oracle  2026-03-26  1357) 	.defer_call_rcu_head = LLIST_HEAD_INIT(defer_call_rcu_head),
0f991a4617a587 Harry Yoo (Oracle  2026-03-26  1358) 	.defer_call_rcu = IRQ_WORK_INIT(defer_call_rcu_irq_work_fn),
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1359) 	.sched_delayed_monitor =
56d22ff0926080 Harry Yoo (Oracle  2026-03-25 @1360) 		IRQ_WORK_INIT_LAZY(sched_delayed_monitor_irq_work_fn),
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1361) 	.run_page_cache_worker =
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1362) 		IRQ_WORK_INIT_LAZY(run_page_cache_worker_irq_work_fn),
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1363) };
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1364) #else
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1365) struct kfree_rcu_cpu {
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1366) 	struct llist_head defer_head;
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1367) 	struct irq_work defer_free;
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1368) };
56d22ff0926080 Harry Yoo (Oracle  2026-03-25  1369) 

:::::: The code at line 1360 was first introduced by commit
:::::: 56d22ff0926080094a3df57e64b2aa87c9e1433d mm/slab: introduce kfree_rcu_nolock()

:::::: TO: Harry Yoo (Oracle) <harry@kernel.org>
:::::: CC: Harry Yoo (Oracle) <harry@kernel.org>

-- 
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-05-03  5:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-03  5:39 [harry:kvfree-rcu-improvements-rfc-v2r1-wip 9/9] mm/slab_common.c:1360:17: error: implicit declaration of function 'IRQ_WORK_INIT_LAZY' 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.