diff options
author | Vladimir Murzin <murzin.v@gmail.com> | 2013-09-29 08:41:18 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-10-11 01:49:26 -0400 |
commit | 8616dff5b0e969444cc8484875ebd936956b5c0d (patch) | |
tree | bc4dded3fc3108cdde0718ed7489372cefd2ec37 | |
parent | 0edfdd10f57bd989f7c2bc31ce6f601bbee1b664 (diff) |
powerpc: Fix section mismatch warning in free_lppacas
While cross-building for PPC64 I've got bunch of
WARNING: arch/powerpc/kernel/built-in.o(.text.unlikely+0x2d2): Section
mismatch in reference from the function .free_lppacas() to the variable
.init.data:lppaca_size The function .free_lppacas() references the variable
__initdata lppaca_size. This is often because .free_lppacas lacks a __initdata
annotation or the annotation of lppaca_size is wrong.
Fix it by using proper annotation for free_lppacas. Additionally, annotate
{allocate,new}_llpcas properly.
Signed-off-by: Vladimir Murzin <murzin.v@gmail.com>
Acked-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/kernel/paca.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/paca.c b/arch/powerpc/kernel/paca.c index 3fc16e3beb9f..0620eaaaad45 100644 --- a/arch/powerpc/kernel/paca.c +++ b/arch/powerpc/kernel/paca.c | |||
@@ -46,7 +46,7 @@ struct lppaca lppaca[] = { | |||
46 | static struct lppaca *extra_lppacas; | 46 | static struct lppaca *extra_lppacas; |
47 | static long __initdata lppaca_size; | 47 | static long __initdata lppaca_size; |
48 | 48 | ||
49 | static void allocate_lppacas(int nr_cpus, unsigned long limit) | 49 | static void __init allocate_lppacas(int nr_cpus, unsigned long limit) |
50 | { | 50 | { |
51 | if (nr_cpus <= NR_LPPACAS) | 51 | if (nr_cpus <= NR_LPPACAS) |
52 | return; | 52 | return; |
@@ -57,7 +57,7 @@ static void allocate_lppacas(int nr_cpus, unsigned long limit) | |||
57 | PAGE_SIZE, limit)); | 57 | PAGE_SIZE, limit)); |
58 | } | 58 | } |
59 | 59 | ||
60 | static struct lppaca *new_lppaca(int cpu) | 60 | static struct lppaca * __init new_lppaca(int cpu) |
61 | { | 61 | { |
62 | struct lppaca *lp; | 62 | struct lppaca *lp; |
63 | 63 | ||
@@ -70,7 +70,7 @@ static struct lppaca *new_lppaca(int cpu) | |||
70 | return lp; | 70 | return lp; |
71 | } | 71 | } |
72 | 72 | ||
73 | static void free_lppacas(void) | 73 | static void __init free_lppacas(void) |
74 | { | 74 | { |
75 | long new_size = 0, nr; | 75 | long new_size = 0, nr; |
76 | 76 | ||