Skip to contentSkip to conversation

x86_32: disable_pse must be __cpuinitdata

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86_32: disable_pse must be __cpuinitdata

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

<-- snip -->

...
WARNING: vmlinux.o(.text+0xfa52): Section mismatch: reference to .init.data:disable_pse (between 'identify_cpu' and 'identify_secondary_cpu')
...

<-- snip -->

---
4cd9e8dd188db19d1ef697beb1fceb2ae67294a1

arch/x86/kernel/setup_32.c +1 -1
index e1e18c3..9c24b45 100644
@@ -67,7 +67,7 @@
    address, and must not be in the .bss segment! */
 unsigned long init_pg_tables_end __initdata = ~0UL;
 
-int disable_pse __devinitdata = 0;
+int disable_pse __cpuinitdata = 0;
 
 /*
  * Machine setup..