From: Ralf Baechle Date: Fri, 13 Oct 2006 10:22:52 +0000 (+0100) Subject: [MIPS] Fix warning about init_initrd() call if !CONFIG_BLK_DEV_INITRD. X-Git-Tag: v2.6.19-rc5~66^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9ba126cfbf505f4d5b39ed294cedd241321c7a91;p=linux-2.6-omap-h63xx.git [MIPS] Fix warning about init_initrd() call if !CONFIG_BLK_DEV_INITRD. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index fdbb508661c..8f6e89697cc 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -223,7 +223,11 @@ disable: #else /* !CONFIG_BLK_DEV_INITRD */ -#define init_initrd() 0 +static unsigned long __init init_initrd(void) +{ + return 0; +} + #define finalize_initrd() do {} while (0) #endif