linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] clocksource: mips-gic-timer: Make gic_compare_irqaction static
@ 2019-03-22 14:43 Yue Haibing
  2019-03-22 22:51 ` [tip:timers/urgent] clocksource/drivers/mips-gic-timer: " tip-bot for YueHaibing
  0 siblings, 1 reply; 2+ messages in thread
From: Yue Haibing @ 2019-03-22 14:43 UTC (permalink / raw)
  To: daniel.lezcano, tglx; +Cc: linux-kernel, YueHaibing

From: YueHaibing <yuehaibing@huawei.com>

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>
---
 drivers/clocksource/mips-gic-timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c
index 54f8a33..37671a5 100644
--- a/drivers/clocksource/mips-gic-timer.c
+++ b/drivers/clocksource/mips-gic-timer.c
@@ -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,
-- 
2.7.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip:timers/urgent] clocksource/drivers/mips-gic-timer: Make gic_compare_irqaction static
  2019-03-22 14:43 [PATCH -next] clocksource: mips-gic-timer: Make gic_compare_irqaction static Yue Haibing
@ 2019-03-22 22:51 ` tip-bot for YueHaibing
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for YueHaibing @ 2019-03-22 22:51 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, yuehaibing, tglx, hpa, mingo, daniel.lezcano

Commit-ID:  9039de4034775f4420bf01fa879f8c04b3cd6bba
Gitweb:     https://git.kernel.org/tip/9039de4034775f4420bf01fa879f8c04b3cd6bba
Author:     YueHaibing <yuehaibing@huawei.com>
AuthorDate: Fri, 22 Mar 2019 22:43:59 +0800
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Fri, 22 Mar 2019 22:59:33 +0100

clocksource/drivers/mips-gic-timer: Make gic_compare_irqaction static

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c
index 54f8a331b53a..37671a5d4ed9 100644
--- a/drivers/clocksource/mips-gic-timer.c
+++ b/drivers/clocksource/mips-gic-timer.c
@@ -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,

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-22 22:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-22 14:43 [PATCH -next] clocksource: mips-gic-timer: Make gic_compare_irqaction static Yue Haibing
2019-03-22 22:51 ` [tip:timers/urgent] clocksource/drivers/mips-gic-timer: " tip-bot for YueHaibing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).