[2.6 patch] x86_32: disable_pse must be __cpuinitdata

From: Adrian Bunk
Date: Tue Dec 11 2007 - 17:24:11 EST


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 -->

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx>

---
4cd9e8dd188db19d1ef697beb1fceb2ae67294a1
diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c
index e1e18c3..9c24b45 100644
--- a/arch/x86/kernel/setup_32.c
+++ b/arch/x86/kernel/setup_32.c
@@ -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..

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/