Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.25 /init/initramfs.c

Filename:/init/initramfs.c
Lines Added:0
Lines Deleted:5
Also changed in: (Previous) 2.6.25-rc9  2.6.25-rc8  2.6.25-rc7  2.6.25-rc6  2.6.25-rc5-git7  2.6.25-rc5-git6 
(Following) 2.6.25-git14  2.6.25-git15  2.6.25-git16  2.6.25-git17  2.6.25-git18  2.6.25-git19 

Location
[  2.6.25
  [  init
     o  initramfs.c

Patch

diff --git a/init/initramfs.c b/init/initramfs.c
index 1db02a0..d53fee8 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -503,7 +503,6 @@ static int __init retain_initrd_param(char *str)
 __setup("retain_initrd", retain_initrd_param);
 
 extern char __initramfs_start[], __initramfs_end[];
-#ifdef CONFIG_BLK_DEV_INITRD
 #include <linux/initrd.h>
 #include <linux/kexec.h>
 
@@ -539,15 +538,12 @@ skip:
    initrd_end = 0;
 }
 
-#endif
-
 static int __init populate_rootfs(void)
 {
    char *err = unpack_to_rootfs(__initramfs_start,
           __initramfs_end - __initramfs_start, 0);
    if (err)
       panic(err);
-#ifdef CONFIG_BLK_DEV_INITRD
    if (initrd_start) {
 #ifdef CONFIG_BLK_DEV_RAM
       int fd;
@@ -579,7 +575,6 @@ static int __init populate_rootfs(void)
       free_initrd();
 #endif
    }
-#endif
    return 0;
 }
 rootfs_initcall(populate_rootfs);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.