1 From 8246aca7058f3f2c2ae503081777965cd8df7b90 Mon Sep 17 00:00:00 2001
2 From: Chen Gang <gang.chen@asianux.com>
3 Date: Wed, 20 Mar 2013 14:30:12 +0800
4 Subject: powerpc/smp: Section mismatch from smp_release_cpus to __initdata spinning_secondaries
6 From: Chen Gang <gang.chen@asianux.com>
8 commit 8246aca7058f3f2c2ae503081777965cd8df7b90 upstream.
10 the smp_release_cpus is a normal funciton and called in normal environments,
11 but it calls the __initdata spinning_secondaries.
12 need modify spinning_secondaries to match smp_release_cpus.
15 (the linker report boot_paca.33377, but it should be spinning_secondaries)
17 -----------------------------------------------------------------------------
19 WARNING: arch/powerpc/kernel/built-in.o(.text+0x23176): Section mismatch in reference from the function .smp_release_cpus() to the variable .init.data:boot_paca.33377
20 The function .smp_release_cpus() references
21 the variable __initdata boot_paca.33377.
22 This is often because .smp_release_cpus lacks a __initdata
23 annotation or the annotation of boot_paca.33377 is wrong.
25 WARNING: arch/powerpc/kernel/built-in.o(.text+0x231fe): Section mismatch in reference from the function .smp_release_cpus() to the variable .init.data:boot_paca.33377
26 The function .smp_release_cpus() references
27 the variable __initdata boot_paca.33377.
28 This is often because .smp_release_cpus lacks a __initdata
29 annotation or the annotation of boot_paca.33377 is wrong.
31 -----------------------------------------------------------------------------
33 Signed-off-by: Chen Gang <gang.chen@asianux.com>
34 Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
35 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
38 arch/powerpc/kernel/setup_64.c | 2 +-
39 1 file changed, 1 insertion(+), 1 deletion(-)
41 --- a/arch/powerpc/kernel/setup_64.c
42 +++ b/arch/powerpc/kernel/setup_64.c
47 -int __initdata spinning_secondaries;
48 +int spinning_secondaries;
51 /* Pick defaults since we might want to patch instructions