Skip to contentSkip to conversation

i386: Mark pit_clockevent static

PATCH New Josh Triplett 1 participant 1 message Jul 20, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386: Mark pit_clockevent static

Nothing outside of arch/i386/kernel/i8253.c uses pit_clockevent, so mark it static.

Eliminates a sparse warning:
warning: symbol 'pit_clockevent' was not declared. Should it be static?

---
 arch/i386/kernel/i8253.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/i386/kernel/i8253.c +1 -1
index f8a3c40..7ba1e76 100644
@@ -91,7 +91,7 @@ static int pit_next_event(unsigned long delta, struct clock_event_device *evt)
  * registered. This mechanism replaces the previous #ifdef LOCAL_APIC -
  * !using_apic_timer decisions in do_timer_interrupt_hook()
  */
-struct clock_event_device pit_clockevent = {
+static struct clock_event_device pit_clockevent = {
 	.name		= "pit",
 	.features	= CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
 	.set_mode	= init_pit_timer,
Signature · 1 line
1.5.2.1