From: Hiroshi Shimamoto CC init/initramfs.o init/initramfs.c:517: warning: 'clean_rootfs' defined but not used clean_rootfs is not used when CONFIG_BLK_DEV_RAM disabled. (akpm: fixes "fastboot: remove duplicate unpack_to_rootfs()") Signed-off-by: Hiroshi Shimamoto Cc: Shaohua Li Cc: Arjan van de Ven Cc: Ingo Molnar Signed-off-by: Andrew Morton --- init/initramfs.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN init/initramfs.c~initramfs-fix-compilation-warning init/initramfs.c --- a/init/initramfs.c~initramfs-fix-compilation-warning +++ a/init/initramfs.c @@ -512,6 +512,7 @@ skip: initrd_end = 0; } +#ifdef CONFIG_BLK_DEV_RAM #define BUF_SIZE 1024 static void __init clean_rootfs(void) { @@ -558,6 +559,7 @@ static void __init clean_rootfs(void) sys_close(fd); kfree(buf); } +#endif static int __init populate_rootfs(void) { _