Skip to content

Commit 8486e4b

Browse files
arndbkamalmostafa
authored andcommitted
genirq: Provide irq_force_affinity fallback for non-SMP
commit 4c88d7f upstream. Patch 01f8fa4 "genirq: Allow forcing cpu affinity of interrupts" added an irq_force_affinity() function, and 30ccf03 "clocksource: Exynos_mct: Use irq_force_affinity() in cpu bringup" subsequently uses it. However, the driver can be used with CONFIG_SMP disabled, but the function declaration is only available for CONFIG_SMP, leading to this build error: drivers/clocksource/exynos_mct.c:431:3: error: implicit declaration of function 'irq_force_affinity' [-Werror=implicit-function-declaration] irq_force_affinity(mct_irqs[MCT_L0_IRQ + cpu], cpumask_of(cpu)); This patch introduces a dummy helper function for the non-SMP case that always returns success, to get rid of the build error. Since the patches causing the problem are marked for stable backports, this one should be as well. Signed-off-by: Arnd Bergmann <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Acked-by: Kukjin Kim <[email protected]> Link: http://lkml.kernel.org/r/5619084.0zmrrIUZLV@wuerfel Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Kamal Mostafa <[email protected]>
1 parent ae56bb8 commit 8486e4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/interrupt.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,11 @@ static inline int irq_set_affinity(unsigned int irq, const struct cpumask *m)
308308
return -EINVAL;
309309
}
310310

311+
static inline int irq_force_affinity(unsigned int irq, const struct cpumask *cpumask)
312+
{
313+
return 0;
314+
}
315+
311316
static inline int irq_can_set_affinity(unsigned int irq)
312317
{
313318
return 0;

0 commit comments

Comments
 (0)