irqchip/mmp: Make mmp_irq_domain_ops static
authorYueHaibing <yuehaibing@huawei.com>
Wed, 20 Mar 2019 13:40:27 +0000 (21:40 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 21 Mar 2019 11:08:25 +0000 (11:08 +0000)
Fix sparse warning:

drivers/irqchip/irq-mmp.c:182:29: warning:
 symbol 'mmp_irq_domain_ops' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-mmp.c

index 25f32e1d77647d0be5d8a59d3d214127ba05b9ac..85d1c4d49572139de8b3312b9ede7088353fddd2 100644 (file)
@@ -176,7 +176,7 @@ static int mmp_irq_domain_xlate(struct irq_domain *d, struct device_node *node,
        return 0;
 }
 
-const struct irq_domain_ops mmp_irq_domain_ops = {
+static const struct irq_domain_ops mmp_irq_domain_ops = {
        .map            = mmp_irq_domain_map,
        .xlate          = mmp_irq_domain_xlate,
 };