* - remove-superfluous-checks-for-config_blk_dev_initrd-from-initramfsc.patch removed from -mm tree
@ 2008-02-07 0:23 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2008-02-07 0:23 UTC (permalink / raw)
To: rpjday, mm-commits
The patch titled
Remove superfluous checks for CONFIG_BLK_DEV_INITRD from initramfs.c
has been removed from the -mm tree. Its filename was
remove-superfluous-checks-for-config_blk_dev_initrd-from-initramfsc.patch
This patch was dropped because it was merged into mainline or a subsystem tree
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: Remove superfluous checks for CONFIG_BLK_DEV_INITRD from initramfs.c
From: "Robert P. J. Day" <rpjday@crashcourse.ca>
Given that init/Makefile includes initramfs.c in the build only if
CONFIG_BLK_DEV_INITRD is defined, there seems to be no point checking for
it yet again.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
init/initramfs.c | 5 -----
1 file changed, 5 deletions(-)
diff -puN init/initramfs.c~remove-superfluous-checks-for-config_blk_dev_initrd-from-initramfsc init/initramfs.c
--- a/init/initramfs.c~remove-superfluous-checks-for-config_blk_dev_initrd-from-initramfsc
+++ a/init/initramfs.c
@@ -503,7 +503,6 @@ static int __init retain_initrd_param(ch
__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);
_
Patches currently in -mm which might be from rpjday@crashcourse.ca are
origin.patch
git-hwmon.patch
git-xfs.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-07 0:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-07 0:23 - remove-superfluous-checks-for-config_blk_dev_initrd-from-initramfsc.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.