Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa90f70a authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Paul Mackerras
Browse files

[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: default avatarGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 18f032cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -111,7 +111,7 @@ int memory_add_physaddr_to_nid(u64 start)
}
}
#endif
#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 pglist_data *pgdata;
	struct zone *zone;
	struct zone *zone;