]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
irqchip/jcore-aic: Fix non static symbol warning
authorWei Yongjun <weiyj.lk@gmail.com>
Sat, 20 Aug 2016 15:26:28 +0000 (15:26 +0000)
committerJason Cooper <jason@lakedaemon.net>
Mon, 22 Aug 2016 23:08:59 +0000 (23:08 +0000)
Fixes the following sparse warning:

drivers/irqchip/irq-jcore-aic.c:47:12: warning:
 symbol 'aic_irq_of_init' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Link: https://lkml.kernel.org/r/1471706788-27587-1-git-send-email-weiyj.lk@gmail.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-jcore-aic.c

index 5e5e3bb7d3c7049c87fb14f9904e5fe84242ddf7..84b01dec277dfee6f35c286c43448ed258a48199 100644 (file)
@@ -44,7 +44,8 @@ static void noop(struct irq_data *data)
 {
 }
 
-int __init aic_irq_of_init(struct device_node *node, struct device_node *parent)
+static int __init aic_irq_of_init(struct device_node *node,
+                                 struct device_node *parent)
 {
        unsigned min_irq = JCORE_AIC2_MIN_HWIRQ;
        unsigned dom_sz = JCORE_AIC_MAX_HWIRQ+1;