Skip to content

Commit

Permalink
init/initramfs: fix warning with CONFIG_BLK_DEV_RAM=n
Browse files Browse the repository at this point in the history
init/initramfs.c:520: warning: 'clean_rootfs' defined but not used

Signed-off-by: Nikanth Karthikesan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Nikanth Karthikesan authored and torvalds committed Apr 13, 2009
1 parent 2f6f6c6 commit b52bb37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init/initramfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ static void __init free_initrd(void)
initrd_end = 0;
}

#ifdef CONFIG_BLK_DEV_RAM
#define BUF_SIZE 1024
static void __init clean_rootfs(void)
{
Expand Down Expand Up @@ -561,6 +562,7 @@ static void __init clean_rootfs(void)
sys_close(fd);
kfree(buf);
}
#endif

static int __init populate_rootfs(void)
{
Expand Down

0 comments on commit b52bb37

Please sign in to comment.