* [PATCH] Make clean_rootfs()'s existence dependent on CONFIG_BLK_DEV_RAM
@ 2009-04-09 17:47 David Howells
0 siblings, 0 replies; only message in thread
From: David Howells @ 2009-04-09 17:47 UTC (permalink / raw)
To: torvalds, akpm; +Cc: dhowells, shaohua.li, arjan, mingo, linux-kernel
Make clean_rootfs()'s existence dependent on CONFIG_BLK_DEV_RAM as it's only
called if that is 'y'.
Signed-off-by: David Howells <dhowells@redhat.com>
---
init/initramfs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/init/initramfs.c b/init/initramfs.c
index 80cd713..e44f2d9 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)
{
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-09 17:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-09 17:47 [PATCH] Make clean_rootfs()'s existence dependent on CONFIG_BLK_DEV_RAM David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).