Skip to contentSkip to conversation

irqchip: irq-gic: Make local functions static

PATCH New Fabio Estevam 1 participant 1 message Oct 5, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip: irq-gic: Make local functions static

From: Fabio Estevam <[email protected]>

Fix the following sparse warnings:

drivers/irqchip/irq-gic.c:651:6: warning: symbol 'gic_raise_softirq' was not declared. Should it be static? drivers/irqchip/irq-gic.c:831:29: warning: symbol 'gic_irq_domain_ops' was not declared. Should it be static? drivers/irqchip/irq-gic.c:935:12: warning: symbol 'gic_of_init' was not declared. Should it be static?

---
 drivers/irqchip/irq-gic.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/irqchip/irq-gic.c +4 -3
index 6365b59..7d6bc22 100644
@@ -648,7 +648,7 @@ static void __init gic_pm_init(struct gic_chip_data *gic)
 #endif
 
 #ifdef CONFIG_SMP
-void gic_raise_softirq(const struct cpumask *mask, unsigned int irq)
+static void gic_raise_softirq(const struct cpumask *mask, unsigned int irq)
 {
 	int cpu;
 	unsigned long flags, map = 0;
@@ -828,7 +828,7 @@ static struct notifier_block gic_cpu_notifier = {
 };
 #endif
 
-const struct irq_domain_ops gic_irq_domain_ops = {
+static const struct irq_domain_ops gic_irq_domain_ops = {
 	.map = gic_irq_domain_map,
 	.xlate = gic_irq_domain_xlate,
 };
@@ -932,7 +932,8 @@ void __init gic_init_bases(unsigned int gic_nr, int irq_start,
 #ifdef CONFIG_OF
 static int gic_cnt __initdata;
 
-int __init gic_of_init(struct device_node *node, struct device_node *parent)
+static int __init gic_of_init(struct device_node *node,
+			      struct device_node *parent)
 {
 	void __iomem *cpu_base;
 	void __iomem *dist_base;
Signature · 1 line
1.8.1.2