[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1471706788-27587-1-git-send-email-weiyj.lk@gmail.com>
Date: Sat, 20 Aug 2016 15:26:28 +0000
From: Wei Yongjun <weiyj.lk@...il.com>
To: Thomas Gleixner <tglx@...utronix.de>,
Jason Cooper <jason@...edaemon.net>,
Marc Zyngier <marc.zyngier@....com>
Cc: Wei Yongjun <weiyj.lk@...il.com>, linux-kernel@...r.kernel.org
Subject: [PATCH -next] irqchip/irq-jcore-aic: fix non static symbol warning
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@...il.com>
---
drivers/irqchip/irq-jcore-aic.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/irqchip/irq-jcore-aic.c b/drivers/irqchip/irq-jcore-aic.c
index 5e5e3bb..84b01de 100644
--- a/drivers/irqchip/irq-jcore-aic.c
+++ b/drivers/irqchip/irq-jcore-aic.c
@@ -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;
Powered by blists - more mailing lists