clocksource/drivers/mips-gic-timer: Make gic_compare_irqaction static
authorYueHaibing <yuehaibing@huawei.com>
Fri, 22 Mar 2019 14:43:59 +0000 (22:43 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 22 Mar 2019 21:59:33 +0000 (22:59 +0100)
Fix sparse warning:

drivers/clocksource/mips-gic-timer.c:70:18: warning:
 symbol 'gic_compare_irqaction' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: <daniel.lezcano@linaro.org>
Link: https://lkml.kernel.org/r/20190322144359.19516-1-yuehaibing@huawei.com
drivers/clocksource/mips-gic-timer.c

index 54f8a331b53a0735e21e6befb4c894dae8f76f97..37671a5d4ed9fe1e59236a543b4c2b28be89f20e 100644 (file)
@@ -67,7 +67,7 @@ static irqreturn_t gic_compare_interrupt(int irq, void *dev_id)
        return IRQ_HANDLED;
 }
 
-struct irqaction gic_compare_irqaction = {
+static struct irqaction gic_compare_irqaction = {
        .handler = gic_compare_interrupt,
        .percpu_dev_id = &gic_clockevent_device,
        .flags = IRQF_PERCPU | IRQF_TIMER,