Skip to contentSkip to conversation

irqchip/irq-bcm7038-l1: make bcm7038_l1_of_init() static

PATCH New Jason Yan 1 participant 1 message Apr 17, 2020

Subsystems (4)
lore
Share & tools
lore

Jason Yan

author
#0 lore raw

PATCH v2 1/1 irqchip/irq-bcm7038-l1: make bcm7038_l1_of_init() static

Fix the following sparse warning:

drivers/irqchip/irq-bcm7038-l1.c:419:12: warning: symbol 'bcm7038_l1_of_init' was not declared. Should it be static?

---
v1->v2: Reindent the second line of the function

 drivers/irqchip/irq-bcm7038-l1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/irqchip/irq-bcm7038-l1.c +2 -2
index eb9bce93cd05..90cac1cac177 100644
@@ -416,8 +416,8 @@ static const struct irq_domain_ops bcm7038_l1_domain_ops = {
 	.map			= bcm7038_l1_map,
 };
 
-int __init bcm7038_l1_of_init(struct device_node *dn,
-			      struct device_node *parent)
+static int __init bcm7038_l1_of_init(struct device_node *dn,
+				     struct device_node *parent)
 {
 	struct bcm7038_l1_chip *intc;
 	int idx, ret;
Signature · 1 line
2.21.1