From: Ralf Baechle Date: Mon, 13 Aug 2007 11:47:17 +0000 (+0100) Subject: [MIPS] IP22: Fix modpost warning. X-Git-Tag: v2.6.23-rc4~7^2~26 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5bd080f7d21c8f6841d63b8cdb4123a95a311eb9;p=karo-tx-linux.git [MIPS] IP22: Fix modpost warning. MODPOST vmlinux.o WARNING: vmlinux.o(.text+0xc70): Section mismatch: reference to .init.text:add_memory_region (between 'probe_memory' and 'enable_local0_irq') Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/sgi-ip22/ip22-mc.c b/arch/mips/sgi-ip22/ip22-mc.c index ddb6506d8341..01a805dcc67c 100644 --- a/arch/mips/sgi-ip22/ip22-mc.c +++ b/arch/mips/sgi-ip22/ip22-mc.c @@ -47,7 +47,7 @@ struct mem { /* * Detect installed memory, do some sanity checks and notify kernel about it */ -static void probe_memory(void) +static void __init probe_memory(void) { int i, j, found, cnt = 0; struct mem bank[4];