diff options
| author | Ingo Molnar <[email protected]> | 2020-06-02 12:08:39 +0200 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2020-06-02 12:34:45 +0200 |
| commit | 25de110d148666752dc0e0da7a0b69de31cd7098 (patch) | |
| tree | e262d0831720ae7ac354d3cee27e96b0e0dc4b3e /include/linux | |
| parent | 1f8db4150536431b031585ecc2a6793f69245de2 (diff) | |
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 <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/irq_work.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/irq_work.h b/include/linux/irq_work.h index f23a359c8f46..2735da5f839e 100644 --- a/include/linux/irq_work.h +++ b/include/linux/irq_work.h @@ -58,9 +58,11 @@ void irq_work_sync(struct irq_work *work); void irq_work_run(void); bool irq_work_needs_cpu(void); +void irq_work_single(void *arg); #else static inline bool irq_work_needs_cpu(void) { return false; } static inline void irq_work_run(void) { } +static inline void irq_work_single(void *arg) { } #endif #endif /* _LINUX_IRQ_WORK_H */ |