]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: mvebu: fix compilation warning on Armada 370 (i.e. non-SMP)
authorArnaud Ebalard <arno@natisbad.org>
Mon, 20 Jan 2014 21:52:05 +0000 (22:52 +0100)
committerJason Cooper <jason@lakedaemon.net>
Tue, 21 Jan 2014 00:55:47 +0000 (00:55 +0000)
commit19e61d41404fe4094c2d54943dbf883d9bbca864
tree7cc5c3b1d2d6fa94f4da818fd49227bd9593bd54
parentdc4910d9e93f8cc56b190dd8fc9e789135978216
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>
drivers/irqchip/irq-armada-370-xp.c