Make clean_rootfs()'s existence dependent on CONFIG_BLK_DEV_RAM
PATCH 1/1 Make clean_rootfs()'s existence dependent on CONFIG_BLK_DEV_RAM
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 <[email protected]>
---
init/initramfs.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
init/initramfs.c +2 -0
@@ -515,6 +515,7 @@ skip: initrd_end =0 ; } +#ifdef CONFIG_BLK_DEV_RAM #define BUF_SIZE 1024static 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 ) {