]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Provide irq_force_affinity fallback for non-SMP
authorArnd Bergmann <arnd@arndb.de>
Wed, 23 Apr 2014 12:49:17 +0000 (14:49 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 6 May 2014 22:42:09 +0000 (00:42 +0200)
commit58e907ad86553fae0b42871b1f2e839cab170087
treeda0bb70da44dee630845a336eda76262f47f2fbb
parent62b91e40ce8ce665b5607796e398f615ce5e3efd
genirq: Provide irq_force_affinity fallback for non-SMP

Patch 93bc938a710 "genirq: Allow forcing cpu affinity of interrupts" added
an irq_force_affinity() function, and 977df632130 "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 <arnd@arndb.de>
Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/5619084.0zmrrIUZLV@wuerfel
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/interrupt.h