Commit b52bb371 authored by Nikanth Karthikesan's avatar Nikanth Karthikesan Committed by Linus Torvalds

init/initramfs: fix warning with CONFIG_BLK_DEV_RAM=n

init/initramfs.c:520: warning: 'clean_rootfs' defined but not used
Signed-off-by: default avatarNikanth Karthikesan <knikanth@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2f6f6c6b
...@@ -515,6 +515,7 @@ static void __init free_initrd(void) ...@@ -515,6 +515,7 @@ static void __init free_initrd(void)
initrd_end = 0; initrd_end = 0;
} }
#ifdef CONFIG_BLK_DEV_RAM
#define BUF_SIZE 1024 #define BUF_SIZE 1024
static void __init clean_rootfs(void) static void __init clean_rootfs(void)
{ {
...@@ -561,6 +562,7 @@ static void __init clean_rootfs(void) ...@@ -561,6 +562,7 @@ static void __init clean_rootfs(void)
sys_close(fd); sys_close(fd);
kfree(buf); kfree(buf);
} }
#endif
static int __init populate_rootfs(void) static int __init populate_rootfs(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment