diff options
author | Andrew Bresticker <abrestic@chromium.org> | 2014-10-20 15:04:00 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 01:45:15 -0500 |
commit | 5fee56e0ddac14511a4dd33f1240a0f0b94a9d08 (patch) | |
tree | faba26b7a3086d856e067743416fe4e8fee63277 /drivers/clocksource/mips-gic-timer.c | |
parent | a331ce63c85080f554e0a19fc4189a520c65267b (diff) |
clocksource: mips-gic: Staticize local symbols
There are a number of variables and functions which are unnecessarily
global. Mark them static.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Qais Yousef <qais.yousef@imgtec.com>
Cc: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8135/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/clocksource/mips-gic-timer.c')
-rw-r--r-- | drivers/clocksource/mips-gic-timer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c index 3cf5912c4054..2603f50e5706 100644 --- a/drivers/clocksource/mips-gic-timer.c +++ b/drivers/clocksource/mips-gic-timer.c | |||
@@ -15,8 +15,8 @@ | |||
15 | 15 | ||
16 | #include <asm/time.h> | 16 | #include <asm/time.h> |
17 | 17 | ||
18 | DEFINE_PER_CPU(struct clock_event_device, gic_clockevent_device); | 18 | static DEFINE_PER_CPU(struct clock_event_device, gic_clockevent_device); |
19 | int gic_timer_irq_installed; | 19 | static int gic_timer_irq_installed; |
20 | 20 | ||
21 | static int gic_next_event(unsigned long delta, struct clock_event_device *evt) | 21 | static int gic_next_event(unsigned long delta, struct clock_event_device *evt) |
22 | { | 22 | { |
@@ -30,13 +30,13 @@ static int gic_next_event(unsigned long delta, struct clock_event_device *evt) | |||
30 | return res; | 30 | return res; |
31 | } | 31 | } |
32 | 32 | ||
33 | void gic_set_clock_mode(enum clock_event_mode mode, | 33 | static void gic_set_clock_mode(enum clock_event_mode mode, |
34 | struct clock_event_device *evt) | 34 | struct clock_event_device *evt) |
35 | { | 35 | { |
36 | /* Nothing to do ... */ | 36 | /* Nothing to do ... */ |
37 | } | 37 | } |
38 | 38 | ||
39 | irqreturn_t gic_compare_interrupt(int irq, void *dev_id) | 39 | static irqreturn_t gic_compare_interrupt(int irq, void *dev_id) |
40 | { | 40 | { |
41 | struct clock_event_device *cd; | 41 | struct clock_event_device *cd; |
42 | int cpu = smp_processor_id(); | 42 | int cpu = smp_processor_id(); |
@@ -53,7 +53,7 @@ struct irqaction gic_compare_irqaction = { | |||
53 | .name = "timer", | 53 | .name = "timer", |
54 | }; | 54 | }; |
55 | 55 | ||
56 | void gic_event_handler(struct clock_event_device *dev) | 56 | static void gic_event_handler(struct clock_event_device *dev) |
57 | { | 57 | { |
58 | } | 58 | } |
59 | 59 | ||