Commit b52bb3712a64c404846f30300b339cfd01e316be
Committed by
Linus Torvalds
1 parent
2f6f6c6b5c
Exists in
master
and in
20 other branches
init/initramfs: fix warning with CONFIG_BLK_DEV_RAM=n
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>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
init/initramfs.c
... | ... | @@ -515,6 +515,7 @@ |
515 | 515 | initrd_end = 0; |
516 | 516 | } |
517 | 517 | |
518 | +#ifdef CONFIG_BLK_DEV_RAM | |
518 | 519 | #define BUF_SIZE 1024 |
519 | 520 | static void __init clean_rootfs(void) |
520 | 521 | { |
... | ... | @@ -561,6 +562,7 @@ |
561 | 562 | sys_close(fd); |
562 | 563 | kfree(buf); |
563 | 564 | } |
565 | +#endif | |
564 | 566 | |
565 | 567 | static int __init populate_rootfs(void) |
566 | 568 | { |