mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix compiler warning unused clean_rootfs when CONFIG_BLK_DEV_RAM is not defined
@ 2009-04-09  8:38 Nikanth Karthikesan
  0 siblings, 0 replies; only message in thread
From: Nikanth Karthikesan @ 2009-04-09  8:38 UTC (permalink / raw)
  To: Arjan van de Ven
  Cc: Linus Torvalds, H. Peter Anvin, Andrew Morton, linux-kernel

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@suse.de>

---
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	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-09  8:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-09  8:38 [PATCH] Fix compiler warning unused clean_rootfs when CONFIG_BLK_DEV_RAM is not defined Nikanth Karthikesan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome