mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 01:43:18 +00:00
The prototype was hidden in an #ifdef on x86, which causes a warning: kernel/irq_work.c:72:13: error: no previous prototype for 'arch_irq_work_raise' [-Werror=missing-prototypes] Some architectures have a working prototype, while others don't. Fix this by providing it in only one place that is always visible. Reviewed-by: Alexander Gordeev <[email protected]> Acked-by: Catalin Marinas <[email protected]> Acked-by: Palmer Dabbelt <[email protected]> Acked-by: Guo Ren <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
13 lines
234 B
C
13 lines
234 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ASM_ARM_IRQ_WORK_H
|
|
#define __ASM_ARM_IRQ_WORK_H
|
|
|
|
#include <asm/smp_plat.h>
|
|
|
|
static inline bool arch_irq_work_has_interrupt(void)
|
|
{
|
|
return is_smp();
|
|
}
|
|
|
|
#endif /* _ASM_ARM_IRQ_WORK_H */
|