[PATCH] Fix compiler warning unused clean_rootfs when CONFIG_BLK_DEV_RAM is not defined

From: Nikanth Karthikesan
Date: Thu Apr 09 2009 - 04:41:43 EST


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 <knikanth@xxxxxxx>

---
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)
{



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/