]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob
57635e13556259800817eb7ecdef73909263c653
[thirdparty/kernel/stable-queue.git] /
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
5
6 From: Chen Gang <gang.chen@asianux.com>
7
8 commit 8246aca7058f3f2c2ae503081777965cd8df7b90 upstream.
9
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.
13
14 the related warning:
15 (the linker report boot_paca.33377, but it should be spinning_secondaries)
16
17 -----------------------------------------------------------------------------
18
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.
24
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.
30
31 -----------------------------------------------------------------------------
32
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>
36
37 ---
38 arch/powerpc/kernel/setup_64.c | 2 +-
39 1 file changed, 1 insertion(+), 1 deletion(-)
40
41 --- a/arch/powerpc/kernel/setup_64.c
42 +++ b/arch/powerpc/kernel/setup_64.c
43 @@ -76,7 +76,7 @@
44 #endif
45
46 int boot_cpuid = 0;
47 -int __initdata spinning_secondaries;
48 +int spinning_secondaries;
49 u64 ppc64_pft_size;
50
51 /* Pick defaults since we might want to patch instructions