Skip to content

Commit 25de110

Browse files
committed
irq_work: Define irq_work_single() on !CONFIG_IRQ_WORK too
Some SMP platforms don't have CONFIG_IRQ_WORK defined, resulting in a link error at build time. Define a stub and clean up the prototype definitions. Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Peter Zijlstra <peterz@infradead.org> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 1f8db41 commit 25de110

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/irq_work.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ void irq_work_sync(struct irq_work *work);
5858

5959
void irq_work_run(void);
6060
bool irq_work_needs_cpu(void);
61+
void irq_work_single(void *arg);
6162
#else
6263
static inline bool irq_work_needs_cpu(void) { return false; }
6364
static inline void irq_work_run(void) { }
65+
static inline void irq_work_single(void *arg) { }
6466
#endif
6567

6668
#endif /* _LINUX_IRQ_WORK_H */

‎kernel/smp.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,6 @@ void generic_smp_call_function_single_interrupt(void)
194194
flush_smp_call_function_queue(true);
195195
}
196196

197-
extern void irq_work_single(void *);
198-
199197
/**
200198
* flush_smp_call_function_queue - Flush pending smp-call-function callbacks
201199
*

0 commit comments

Comments
 (0)