irqchip/irq-bcm7038-l1: Make bcm7038_l1_of_init() static
authorJason Yan <yanaijie@huawei.com>
Fri, 17 Apr 2020 07:40:36 +0000 (15:40 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 17 Apr 2020 07:59:30 +0000 (08:59 +0100)
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@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200417074036.46594-1-yanaijie@huawei.com
drivers/irqchip/irq-bcm7038-l1.c

index eb9bce93cd057e84da94dbe73f092f497520998b..fd7c537fb42ac9f6a18c7da4b93cdb5ede304996 100644 (file)
@@ -416,7 +416,7 @@ static const struct irq_domain_ops bcm7038_l1_domain_ops = {
        .map                    = bcm7038_l1_map,
 };
 
-int __init bcm7038_l1_of_init(struct device_node *dn,
+static int __init bcm7038_l1_of_init(struct device_node *dn,
                              struct device_node *parent)
 {
        struct bcm7038_l1_chip *intc;