Skip to contentSkip to conversation

x86 apic_32.c section fix

PATCH New Adrian Bunk 1 participant 1 message Dec 11, 2007 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86 apic_32.c section fix

This patch fixes the following section mismatch with CONFIG_HOTPLUG=n, CONFIG_HOTPLUG_CPU=y:

<-- snip -->

...
WARNING: vmlinux.o(.text+0x2390d): Section mismatch: reference to .init.text.5:setup_local_APIC (between 'start_secondary' and 'check_tsc_warp')
...

<-- snip -->

---
ffa2f7f7e1cb68073b9ad597414dfd792ab5c697

arch/x86/kernel/apic_32.c +1 -1
index 96986b4..edb5108 100644
@@ -849,7 +849,7 @@ void __init init_bsp_APIC(void)
 /**
  * setup_local_APIC - setup the local APIC
  */
-void __devinit setup_local_APIC(void)
+void __cpuinit setup_local_APIC(void)
 {
 	unsigned long oldvalue, value, maxlvt, integrated;
 	int i, j;