Skip to contentSkip to conversation

irqchip/irq-jcore-aic: fix non static symbol warning

PATCH Applied Wei Yongjun 2 participants 2 messages Aug 20, 2016 – Aug 22, 2016 irqchip drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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?

---
 drivers/irqchip/irq-jcore-aic.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/irqchip/irq-jcore-aic.c +2 -1
index 5e5e3bb..84b01de 100644
@@ -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;
Applied
#1 lore raw

Hi Wei Yongjun,

Quoted 9 lines · Wei Yongjun

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?

---
 drivers/irqchip/irq-jcore-aic.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied to irqchip/jcore,

thx,

Jason.