Skip to contentSkip to conversation

Fix compiler warning unused clean_rootfs when CONFIG_BLK_DEV_RAM is not defined

PATCH New Nikanth Karthikesan 1 participant 1 message Apr 9, 2009 VFS

lore
Share & tools
lore
#0 lore raw

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.

---

init/initramfs.c +2 -0
index 80cd713..e44f2d9 100644
@@ -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)
 {