From: Geert Uytterhoeven Date: Fri, 28 Mar 2008 16:10:50 +0000 (+1100) Subject: [POWERPC] arch_add_memory() cannot be __devinit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fa90f70a8ed338d1afb43da21163752c6558a7d5;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [POWERPC] arch_add_memory() cannot be __devinit WARNING: vmlinux.o(.text+0xb41b0): Section mismatch in reference from the function .add_memory() to the function .devinit.text:.arch_add_memory() The function .add_memory() references the function __devinit .arch_add_memory(). This is often because .add_memory lacks a __devinit annotation or the annotation of .arch_add_memory is wrong. arch_add_memory() is also not __devinit on other architectures Signed-off-by: Geert Uytterhoeven Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 60c019cdc69f..1b119b92a826 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c @@ -111,7 +111,7 @@ int memory_add_physaddr_to_nid(u64 start) } #endif -int __devinit arch_add_memory(int nid, u64 start, u64 size) +int arch_add_memory(int nid, u64 start, u64 size) { struct pglist_data *pgdata; struct zone *zone;