aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-06-05 07:43:34 -0400
committerThomas Gleixner <tglx@linutronix.de>2018-06-06 06:05:19 -0400
commita84277bf3efcc7bb5b5a5eec62de5c134cb47ee5 (patch)
treea9df0e82405ae8b89857db601a9aad2da50ae1bc
parent716a685fdb89942a50c4138141027e38336a895f (diff)
irqchip/stm32: Fix non-SMP build warning
A CONFIG_SMP=n build emits a harmless compile-time warning: drivers/irqchip/irq-stm32-exti.c:495:12: error: 'stm32_exti_h_set_affinity' defined but not used [-Werror=unused-function] The #ifdef is inconsistent here, and it's better to use an IS_ENABLED() check that lets the compiler silently drop that function. Fixes: 927abfc4461e ("irqchip/stm32: Add stm32mp1 support with hierarchy domain") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Ludovic Barre <ludovic.barre@st.com> Cc: Rob Herring <robh@kernel.org> Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org> Cc: Radoslaw Pietrzyk <radoslaw.pietrzyk@gmail.com> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: linux-arm-kernel@lists.infradead.org Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com> Cc: Alexandre Torgue <alexandre.torgue@st.com> Link: https://lkml.kernel.org/r/20180605114347.1347128-1-arnd@arndb.de
-rw-r--r--drivers/irqchip/irq-stm32-exti.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c
index 5089c1e2838d..3a7e8905a97e 100644
--- a/drivers/irqchip/irq-stm32-exti.c
+++ b/drivers/irqchip/irq-stm32-exti.c
@@ -552,9 +552,7 @@ static struct irq_chip stm32_exti_h_chip = {
552 .irq_set_type = stm32_exti_h_set_type, 552 .irq_set_type = stm32_exti_h_set_type,
553 .irq_set_wake = stm32_exti_h_set_wake, 553 .irq_set_wake = stm32_exti_h_set_wake,
554 .flags = IRQCHIP_MASK_ON_SUSPEND, 554 .flags = IRQCHIP_MASK_ON_SUSPEND,
555#ifdef CONFIG_SMP 555 .irq_set_affinity = IS_ENABLED(CONFIG_SMP) ? stm32_exti_h_set_affinity : NULL,
556 .irq_set_affinity = stm32_exti_h_set_affinity,
557#endif
558}; 556};
559 557
560static int stm32_exti_h_domain_alloc(struct irq_domain *dm, 558static int stm32_exti_h_domain_alloc(struct irq_domain *dm,