Skip to content

Commit 19e61d4

Browse files
natisbadJason Cooper
authored andcommitted
ARM: mvebu: fix compilation warning on Armada 370 (i.e. non-SMP)
The following appears during compilation for an Armada 370 target because 'irq_controller_lock' is used only when CONFIG_SMP is enabled: drivers/irqchip/irq-armada-370-xp.c:62:8: warning: 'irq_controller_lock' defined but not used [-Wunused-variable] Fix that warning by moving declaration of 'irq_controller_lock' inside existing #ifdef. Signed-off-by: Arnaud Ebalard <arno@natisbad.org> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
1 parent dc4910d commit 19e61d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/irqchip/irq-armada-370-xp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@
5959
#define PCI_MSI_DOORBELL_END (32)
6060
#define PCI_MSI_DOORBELL_MASK 0xFFFF0000
6161

62-
static DEFINE_RAW_SPINLOCK(irq_controller_lock);
63-
6462
static void __iomem *per_cpu_int_base;
6563
static void __iomem *main_int_base;
6664
static struct irq_domain *armada_370_xp_mpic_domain;
@@ -239,6 +237,8 @@ static inline int armada_370_xp_msi_init(struct device_node *node,
239237
#endif
240238

241239
#ifdef CONFIG_SMP
240+
static DEFINE_RAW_SPINLOCK(irq_controller_lock);
241+
242242
static int armada_xp_set_affinity(struct irq_data *d,
243243
const struct cpumask *mask_val, bool force)
244244
{

0 commit comments

Comments
 (0)