Skip to content

Commit

Permalink
x86: platform: Fix section annotations
Browse files Browse the repository at this point in the history
init_IRQ() and x86_late_time_init() are missing __init annotations.

The x86 platform ops variables are annotated, but the annotation needs
to be put between the variable name and the "=" of the initializer.

Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
KAGA-KOKO committed Sep 16, 2009
1 parent e11dada commit 54e2603
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/x86/kernel/irqinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ void __init init_ISA_irqs(void)
}
}

void init_IRQ(void)
void __init init_IRQ(void)
{
x86_init.irqs.intr_init();
}
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void __init hpet_time_init(void)
setup_default_timer_irq();
}

static void x86_late_time_init(void)
static __init void x86_late_time_init(void)
{
x86_init.timers.timer_init();
tsc_init();
Expand Down
4 changes: 2 additions & 2 deletions arch/x86/kernel/x86_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void __init x86_init_pgd_noop(pgd_t *unused) { }
* The platform setup functions are preset with the default functions
* for standard PC hardware.
*/
struct __initdata x86_init_ops x86_init = {
struct x86_init_ops x86_init __initdata = {

.resources = {
.probe_roms = x86_init_noop,
Expand Down Expand Up @@ -64,7 +64,7 @@ struct __initdata x86_init_ops x86_init = {
},
};

__cpuinitdata struct x86_cpuinit_ops x86_cpuinit = {
struct x86_cpuinit_ops x86_cpuinit __cpuinitdata = {
.setup_percpu_clockev = setup_secondary_APIC_clock,
};

Expand Down

0 comments on commit 54e2603

Please sign in to comment.