initramfs: cleanup populate_rootfs

The code for kernels that support ramdisks or not is mostly the same.
Unify it by using an IS_ENABLED for the info message, and moving the error
message into a stub for populate_initrd_image.

[ fix a compilation error]
Signed-off-by: Christoph Hellwig <>
Signed-off-by: Qian Cai <>
Acked-by: Mike Rapoport <>
Cc: Catalin Marinas <>	[arm64]
Cc: Geert Uytterhoeven <>	[m68k]
Cc: Steven Price <>
Cc: Alexander Viro <>
Cc: Guan Xuetao <>
Cc: Russell King <>
Cc: Will Deacon <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
1 file changed