diff options
author | Nikanth Karthikesan <knikanth@suse.de> | 2009-04-13 14:39:38 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-13 15:04:28 -0700 |
commit | b52bb3712a64c404846f30300b339cfd01e316be (patch) | |
tree | 938c5022b46c06f35fdbb2e40f8c9c39ab259025 | |
parent | 2f6f6c6b5c4774cfdbe759eea1f5203a4b26fe6f (diff) | |
download | linux-b52bb3712a64c404846f30300b339cfd01e316be.tar.gz linux-b52bb3712a64c404846f30300b339cfd01e316be.tar.bz2 linux-b52bb3712a64c404846f30300b339cfd01e316be.zip |
init/initramfs: fix warning with CONFIG_BLK_DEV_RAM=n
init/initramfs.c:520: warning: 'clean_rootfs' defined but not used
Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | init/initramfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/init/initramfs.c b/init/initramfs.c index 80cd713f6cc5..e44f2d932cc4 100644 --- a/init/initramfs.c +++ b/init/initramfs.c @@ -515,6 +515,7 @@ skip: initrd_end = 0; } +#ifdef CONFIG_BLK_DEV_RAM #define BUF_SIZE 1024 static void __init clean_rootfs(void) { @@ -561,6 +562,7 @@ static void __init clean_rootfs(void) sys_close(fd); kfree(buf); } +#endif static int __init populate_rootfs(void) { |