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

From: Jason Yan
Date: Fri Apr 17 2020 - 07:07:38 EST


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?

Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Signed-off-by: Jason Yan <yanaijie@xxxxxxxxxx>
---
v1->v2: Reindent the second line of the function

drivers/irqchip/irq-bcm7038-l1.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c
index eb9bce93cd05..90cac1cac177 100644
--- a/drivers/irqchip/irq-bcm7038-l1.c
+++ b/drivers/irqchip/irq-bcm7038-l1.c
@@ -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;
--
2.21.1