Skip to content

Commit

Permalink
proper extern for late_time_init
Browse files Browse the repository at this point in the history
Add a proper extern for late_time_init in include/linux/init.h

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: john stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Apr 29, 2008
1 parent 175a06a commit 7d195a5
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 9 deletions.
3 changes: 0 additions & 3 deletions arch/mips/pmc-sierra/yosemite/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ void __init plat_time_init(void)
mips_hpt_frequency = 33000000 * 3 * 5;
}

/* No other usable initialization hook than this ... */
extern void (*late_time_init)(void);

unsigned long ocd_base;

EXPORT_SYMBOL(ocd_base);
Expand Down
2 changes: 0 additions & 2 deletions arch/ppc/platforms/sbc82xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ static void (*callback_init_IRQ)(void);

extern unsigned char __res[sizeof(bd_t)];

extern void (*late_time_init)(void);

#ifdef CONFIG_GEN_RTC
TODC_ALLOC();

Expand Down
3 changes: 1 addition & 2 deletions arch/um/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <linux/clockchips.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/jiffies.h>
#include <linux/threads.h>
Expand Down Expand Up @@ -109,8 +110,6 @@ static void __init setup_itimer(void)
clockevents_register_device(&itimer_clockevent);
}

extern void (*late_time_init)(void);

void __init time_init(void)
{
long long nsecs;
Expand Down
1 change: 0 additions & 1 deletion arch/x86/kernel/time_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ irqreturn_t timer_interrupt(int irq, void *dev_id)
return IRQ_HANDLED;
}

extern void (*late_time_init)(void);
/* Duplicate of time_init() below, with hpet_enable part added */
void __init hpet_time_init(void)
{
Expand Down
1 change: 0 additions & 1 deletion include/asm-x86/time.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef _ASMX86_TIME_H
#define _ASMX86_TIME_H

extern void (*late_time_init)(void);
extern void hpet_time_init(void);

#include <asm/mc146818rtc.h>
Expand Down
2 changes: 2 additions & 0 deletions include/linux/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ extern unsigned int reset_devices;
void setup_arch(char **);
void prepare_namespace(void);

extern void (*late_time_init)(void);

#endif

#ifndef MODULE
Expand Down

0 comments on commit 7d195a5

Please sign in to comment.