projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f6f6c6
)
init/initramfs: fix warning with CONFIG_BLK_DEV_RAM=n
author
Nikanth Karthikesan
<knikanth@suse.de>
Mon, 13 Apr 2009 21:39:38 +0000
(14:39 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Mon, 13 Apr 2009 22:04:28 +0000
(15:04 -0700)
init/initramfs.c:520: warning: 'clean_rootfs' defined but not used
Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/initramfs.c
patch
|
blob
|
blame
|
history
diff --git
a/init/initramfs.c
b/init/initramfs.c
index 80cd713f6cc5cc8b3f09317534acebdf4983903a..e44f2d932cc4cc9d28d0be14864220b5888212e7 100644
(file)
--- 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)
{