diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2008-03-28 12:07:45 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-01 05:43:08 -0400 |
commit | 18f032cb51a6de7d9c875e1112650ecf975fee12 (patch) | |
tree | 2a18fc5d0c25225294bd5c6a69284e510cdef371 /arch/powerpc/kernel | |
parent | 52db9b44262754bad1b0456d27a862a46cc7f893 (diff) |
[POWERPC] move_device_tree() should be __init
WARNING: vmlinux.o(.text+0x1e4c0): Section mismatch in reference from the
function .move_device_tree() to the function .init.text:.lmb_alloc_base()
The function .move_device_tree() references
the function __init .lmb_alloc_base().
This is often because .move_device_tree lacks a __init
annotation or the annotation of .lmb_alloc_base is wrong.
move_device_tree() is called from early_init_devtree() only, which is __init
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/prom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index 9330920265f..31d5b22c59a 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -437,7 +437,7 @@ early_param("mem", early_parse_mem); | |||
437 | * The device tree may be allocated beyond our memory limit, or inside the | 437 | * The device tree may be allocated beyond our memory limit, or inside the |
438 | * crash kernel region for kdump. If so, move it out of the way. | 438 | * crash kernel region for kdump. If so, move it out of the way. |
439 | */ | 439 | */ |
440 | static void move_device_tree(void) | 440 | static void __init move_device_tree(void) |
441 | { | 441 | { |
442 | unsigned long start, size; | 442 | unsigned long start, size; |
443 | void *p; | 443 | void *p; |