diff options
author | Vladimir Murzin <murzin.v@gmail.com> | 2013-09-10 12:42:07 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-09-10 21:39:38 -0400 |
commit | 620e5050827008ab207a8dfcc44cb79f07f1942c (patch) | |
tree | dae3ef5985b031ee5f5e377684b2dd120c78420f /arch | |
parent | 69e044dd759e26667c110ab771d2c908fbd5d3dd (diff) |
powerpc: Fix section mismatch warning for prom_rtas_call
While cross-building for PPC64 I've got
WARNING: vmlinux.o(.text.unlikely+0x1ba): Section mismatch in
reference from the function .prom_rtas_call() to the variable
.init.data:dt_string_start The function .prom_rtas_call() references
the variable __initdata dt_string_start. This is often because
.prom_rtas_call lacks a __initdata annotation or the annotation of
dt_string_start is wrong.
WARNING: vmlinux.o(.meminit.text+0xeb0): Section mismatch in reference
from the function .free_area_init_core.isra.47() to the function
.init.text:.set_pageblock_order() The function __meminit
.free_area_init_core.isra.47() references a function __init
.set_pageblock_order(). If .set_pageblock_order is only used by
.free_area_init_core.isra.47 then annotate .set_pageblock_order with a
matching annotation.
Fix it by proper annotation of prom_rtas_call.
Signed-off-by: Vladimir Murzin <murzin.v@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/prom_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index 7b6391b68fb8..12e656ffe60e 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c | |||
@@ -1297,7 +1297,8 @@ static void __init prom_query_opal(void) | |||
1297 | prom_opal_align = 0x10000; | 1297 | prom_opal_align = 0x10000; |
1298 | } | 1298 | } |
1299 | 1299 | ||
1300 | static int prom_rtas_call(int token, int nargs, int nret, int *outputs, ...) | 1300 | static int __init prom_rtas_call(int token, int nargs, int nret, |
1301 | int *outputs, ...) | ||
1301 | { | 1302 | { |
1302 | struct rtas_args rtas_args; | 1303 | struct rtas_args rtas_args; |
1303 | va_list list; | 1304 | va_list list; |