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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1448981848-17827-1-git-send-email-linux@rasmusvillemoes.dk>
Date:	Tue,  1 Dec 2015 15:57:27 +0100
From:	Rasmus Villemoes <linux@...musvillemoes.dk>
To:	Dan Williams <dan.j.williams@...el.com>,
	Jiang Liu <jiang.liu@...ux.intel.com>
Cc:	Rasmus Villemoes <linux@...musvillemoes.dk>,
	linux-kernel@...r.kernel.org
Subject: [PATCH] kernel/resource.c: mark static variable __initdata

The address of reserved doesn't escape this function, and I could sure
use those extra .0000001% of memory after boot.

Signed-off-by: Rasmus Villemoes <linux@...musvillemoes.dk>
---
 kernel/resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/resource.c b/kernel/resource.c
index f150dbbe6f62..fce48ff04ffd 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -1395,7 +1395,7 @@ EXPORT_SYMBOL(__devm_release_region);
 #define MAXRESERVE 4
 static int __init reserve_setup(char *str)
 {
-	static int reserved;
+	static int reserved __initdata;
 	static struct resource reserve[MAXRESERVE];
 
 	for (;;) {
-- 
2.6.1

--
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