lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20090409174723.7787.8779.stgit@warthog.procyon.org.uk>
Date:	Thu, 09 Apr 2009 18:47:23 +0100
From:	David Howells <dhowells@...hat.com>
To:	torvalds@...l.org, akpm@...ux-foundation.org
Cc:	dhowells@...hat.com, shaohua.li@...el.com, arjan@...radead.org,
	mingo@...e.hu, linux-kernel@...r.kernel.org
Subject: [PATCH] Make clean_rootfs()'s existence dependent on
	CONFIG_BLK_DEV_RAM

Make clean_rootfs()'s existence dependent on CONFIG_BLK_DEV_RAM as it's only
called if that is 'y'.

Signed-off-by: David Howells <dhowells@...hat.com>
---

 init/initramfs.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/init/initramfs.c b/init/initramfs.c
index 80cd713..e44f2d9 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -515,6 +515,7 @@ skip:
 	initrd_end = 0;
 }
 
+#ifdef CONFIG_BLK_DEV_RAM
 #define BUF_SIZE 1024
 static void __init clean_rootfs(void)
 {
@@ -561,6 +562,7 @@ static void __init clean_rootfs(void)
 	sys_close(fd);
 	kfree(buf);
 }
+#endif
 
 static int __init populate_rootfs(void)
 {

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ