Skip to contentSkip to conversation

irqchip: vt8500: Staticize local symbols

PATCH New Axel Lin 2 participants 2 messages Jul 5, 2013 irqchip drivers

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH v2 1/1 irqchip: vt8500: Staticize local symbols

This driver is converted to use IRQCHIP_DECLARE and irqchip_init. vt8500_handle_irq() and vt8500_irq_init() are only referenced in this file, so make them static.

---
 drivers/irqchip/irq-vt8500.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/irqchip/irq-vt8500.c +4 -2
index d970595..8b5176b 100644
@@ -178,7 +178,8 @@ static struct irq_domain_ops vt8500_irq_domain_ops = {
 	.xlate = irq_domain_xlate_onecell,
 };
 
-asmlinkage void __exception_irq_entry vt8500_handle_irq(struct pt_regs *regs)
+static asmlinkage
+void __exception_irq_entry vt8500_handle_irq(struct pt_regs *regs)
 {
 	u32 stat, i;
 	int irqnr, virq;
@@ -203,7 +204,8 @@ asmlinkage void __exception_irq_entry vt8500_handle_irq(struct pt_regs *regs)
 	}
 }
 
-int __init vt8500_irq_init(struct device_node *node, struct device_node *parent)
+static int __init vt8500_irq_init(struct device_node *node,
+					struct device_node *parent)
 {
 	int irq, i;
 	struct device_node *np = node;
Signature · 1 line
1.8.1.2
#1 lore raw
irqchip: vt8500: Staticize local symbols
Commit-ID:  e658718e478fb2591f38afd9643eab06698790fe
Gitweb:     http://git.kernel.org/tip/e658718e478fb2591f38afd9643eab06698790fe
Author:     Axel Lin <[email protected]>
AuthorDate: Fri, 5 Jul 2013 11:33:49 +0800
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Fri, 5 Jul 2013 11:39:24 +0200

irqchip: vt8500: Staticize local symbols

This driver is converted to use IRQCHIP_DECLARE and irqchip_init. vt8500_handle_irq() and vt8500_irq_init() are only referenced in this file, so make them static.

---
 drivers/irqchip/irq-vt8500.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/irqchip/irq-vt8500.c +4 -2
index d970595..1846e7d 100644
@@ -178,7 +178,8 @@ static struct irq_domain_ops vt8500_irq_domain_ops = {
 	.xlate = irq_domain_xlate_onecell,
 };
 
-asmlinkage void __exception_irq_entry vt8500_handle_irq(struct pt_regs *regs)
+static asmlinkage
+void __exception_irq_entry vt8500_handle_irq(struct pt_regs *regs)
 {
 	u32 stat, i;
 	int irqnr, virq;
@@ -203,7 +204,8 @@ asmlinkage void __exception_irq_entry vt8500_handle_irq(struct pt_regs *regs)
 	}
 }
 
-int __init vt8500_irq_init(struct device_node *node, struct device_node *parent)
+static int __init vt8500_irq_init(struct device_node *node,
+				  struct device_node *parent)
 {
 	int irq, i;
 	struct device_node *np = node;