Fix compiler warning unused clean_rootfs when CONFIG_BLK_DEV_RAM is not defined
PATCH 1/1 Fix compiler warning unused clean_rootfs when CONFIG_BLK_DEV_RAM is not defined
Resending as I missed the list, earlier.
Thanks
Nikanth
Fix gcc warning, "unused clean_rootfs", when CONFIG_BLK_DEV_RAM not defined.
Signed-off-by Nikanth Karthikesan <[email protected]>
---
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 ) {