]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
x86: platform: Fix section annotations
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Sep 2009 06:42:26 +0000 (08:42 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 16 Sep 2009 08:21:10 +0000 (10:21 +0200)
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 <tglx@linutronix.de>
arch/x86/kernel/irqinit.c
arch/x86/kernel/time.c
arch/x86/kernel/x86_init.c

index e0142cda239472098674ca60d70f6af4b0611857..73b16649b7d1930ecae53c50028ec26b21ac1458 100644 (file)
@@ -140,7 +140,7 @@ void __init init_ISA_irqs(void)
        }
 }
 
-void init_IRQ(void)
+void __init init_IRQ(void)
 {
        x86_init.irqs.intr_init();
 }
index fcece00356a49b618d57dfd4c95e93801ccd806f..e293ac56c72316a6f3bbaa2192230c1f08f25e7c 100644 (file)
@@ -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();
index 24be7f397894a9f9bcfb6568498d2ce6de5614bb..68824c7be4e2d401da5eafaa80e272d5baa247b6 100644 (file)
@@ -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,
@@ -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,
 };