fix build error with CONFIG_BLK_DEV_INITRD=n

Message ID alpine.LFD.2.00.1007130049250.10598@xanadu.home
State Accepted
Delegated to: Leann Ogasawara
Headers show

Commit Message

Nicolas Pitre July 13, 2010, 4:55 a.m.
populate_rootfs_domain is defined in init/initramfs.c which gets
compiled only if CONFIG_BLK_DEV_INITRD=y.

Signed-off-by: Nicolas Pitre <>

Would be a good idea to fold in the patch from commit 1b40343e, or 
better yet, find a cleaner solution.


diff --git a/init/main.c b/init/main.c
index 3fe1a78..fbe7a22 100644
--- a/init/main.c
+++ b/init/main.c
@@ -926,11 +926,13 @@  static int __init kernel_init(void * unused)
 	(void) sys_dup(0);
 	(void) sys_dup(0);
 	 * We need to ensure that the filesystem is ready by this point, wait for
 	 * async_populate_rootfs to complete.
 	 * check if there is an early userspace init.  If yes, let it do all