Skip to content

Commit ceab3fe

Browse files
committed
arm64: Fix compilation error on UP builds
In file included from ./arch/arm64/include/asm/irq_work.h:4:0, from include/linux/irq_work.h:46, from include/linux/perf_event.h:49, from include/linux/ftrace_event.h:9, from include/trace/syscall.h:6, from include/linux/syscalls.h:81, from init/main.c:18: ./arch/arm64/include/asm/smp.h:24:3: error: #error "<asm/smp.h> included in non-SMP build" # error "<asm/smp.h> included in non-SMP build" Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Fixes: 3631073 ("arm64: Tell irq work about self IPI support") Reported-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Guenter Roeck <linux@roeck-us.net>
1 parent a24637d commit ceab3fe

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎arch/arm64/include/asm/irq_work.h‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
#ifndef __ASM_IRQ_WORK_H
22
#define __ASM_IRQ_WORK_H
33

4+
#ifdef CONFIG_SMP
5+
46
#include <asm/smp.h>
57

68
static inline bool arch_irq_work_has_interrupt(void)
79
{
810
return !!__smp_cross_call;
911
}
1012

13+
#else
14+
15+
static inline bool arch_irq_work_has_interrupt(void)
16+
{
17+
return false;
18+
}
19+
20+
#endif
21+
1122
#endif /* __ASM_IRQ_WORK_H */

0 commit comments

Comments
 (0)