Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753660AbYHZX5h (ORCPT ); Tue, 26 Aug 2008 19:57:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751912AbYHZX53 (ORCPT ); Tue, 26 Aug 2008 19:57:29 -0400 Received: from gateway-1237.mvista.com ([63.81.120.158]:11773 "EHLO gateway-1237.mvista.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751887AbYHZX53 (ORCPT ); Tue, 26 Aug 2008 19:57:29 -0400 Message-ID: <48B4984A.6090508@ct.jp.nec.com> Date: Tue, 26 Aug 2008 16:56:58 -0700 From: Hiroshi Shimamoto User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Stephen Rothwell Cc: linux-next@vger.kernel.org, LKML , Shaohua Li , Arjan van de Ven , Ingo Molnar Subject: [PATCH -next] initramfs: fix compilation warning References: <20080826184008.6be39f19.sfr@canb.auug.org.au> In-Reply-To: <20080826184008.6be39f19.sfr@canb.auug.org.au> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1020 Lines: 40 From: Hiroshi Shimamoto CC init/initramfs.o init/initramfs.c:517: warning: 'clean_rootfs' defined but not used clean_rootfs is not used when CONFIG_BLK_DEV_RAM disabled. Signed-off-by: Hiroshi Shimamoto --- init/initramfs.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/init/initramfs.c b/init/initramfs.c index da8d030..2f056e2 100644 --- a/init/initramfs.c +++ b/init/initramfs.c @@ -512,6 +512,7 @@ skip: initrd_end = 0; } +#ifdef CONFIG_BLK_DEV_RAM #define BUF_SIZE 1024 static void __init clean_rootfs(void) { @@ -558,6 +559,7 @@ static void __init clean_rootfs(void) sys_close(fd); kfree(buf); } +#endif static int __init populate_rootfs(void) { -- 1.5.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/