Skip to content

Commit 54e2603

Browse files
committed
x86: platform: Fix section annotations
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>
1 parent e11dada commit 54e2603

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

arch/x86/kernel/irqinit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void __init init_ISA_irqs(void)
140140
}
141141
}
142142

143-
void init_IRQ(void)
143+
void __init init_IRQ(void)
144144
{
145145
x86_init.irqs.intr_init();
146146
}

arch/x86/kernel/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void __init hpet_time_init(void)
105105
setup_default_timer_irq();
106106
}
107107

108-
static void x86_late_time_init(void)
108+
static __init void x86_late_time_init(void)
109109
{
110110
x86_init.timers.timer_init();
111111
tsc_init();

arch/x86/kernel/x86_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void __init x86_init_pgd_noop(pgd_t *unused) { }
2323
* The platform setup functions are preset with the default functions
2424
* for standard PC hardware.
2525
*/
26-
struct __initdata x86_init_ops x86_init = {
26+
struct x86_init_ops x86_init __initdata = {
2727

2828
.resources = {
2929
.probe_roms = x86_init_noop,
@@ -64,7 +64,7 @@ struct __initdata x86_init_ops x86_init = {
6464
},
6565
};
6666

67-
__cpuinitdata struct x86_cpuinit_ops x86_cpuinit = {
67+
struct x86_cpuinit_ops x86_cpuinit __cpuinitdata = {
6868
.setup_percpu_clockev = setup_secondary_APIC_clock,
6969
};
7070

0 commit comments

Comments
 (0)