[tip:irq/core 3/7] kernel/irq/manage.c:1208:2: error: call to undeclared function 'clear_and_wake_up_bit'; ISO C99 and later do not support implicit function declarations

From: kernel test robot

Date: Thu Oct 15 2026 - 18:46:52 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core
head: 4351cc74202857f5b85b3573c477c9f798f5cd88
commit: 313fa9ffa302f81b437e1ebbb1e6abae06be0cad [3/7] genirq: Defer kfree(irqaction) until irq_thread_dtor() finishes
config: i386-randconfig-2200-20261015 (https://download.01.org/0day-ci/archive/20261016/202610160017.QOA49KVT-lkp@xxxxxxxxx/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261016/202610160017.QOA49KVT-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610160017.QOA49KVT-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> kernel/irq/manage.c:1208:2: error: call to undeclared function 'clear_and_wake_up_bit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1208 | clear_and_wake_up_bit(IRQTF_EXIT_WORK, &action->thread_flags);
| ^
kernel/irq/manage.c:1292:2: error: call to undeclared function 'clear_and_wake_up_bit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1292 | clear_and_wake_up_bit(IRQTF_EXIT_WORK, &action->thread_flags);
| ^
>> kernel/irq/manage.c:1866:2: error: call to undeclared function 'wait_on_bit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1866 | wait_on_bit(&action->thread_flags, IRQTF_EXIT_WORK, TASK_UNINTERRUPTIBLE);
| ^
3 errors generated.


vim +/clear_and_wake_up_bit +1208 kernel/irq/manage.c

1202
1203 static void irq_thread_dtor(struct callback_head *unused)
1204 {
1205 struct irqaction *action = kthread_data(current);
1206
1207 __irq_thread_dtor(action);
> 1208 clear_and_wake_up_bit(IRQTF_EXIT_WORK, &action->thread_flags);
1209 }
1210

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki