* [PATCH] kernel/resource.c: mark static variable __initdata
@ 2015-12-01 14:57 Rasmus Villemoes
0 siblings, 0 replies; only message in thread
From: Rasmus Villemoes @ 2015-12-01 14:57 UTC (permalink / raw)
To: Dan Williams, Jiang Liu; +Cc: Rasmus Villemoes, linux-kernel
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@rasmusvillemoes.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-12-01 14:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-01 14:57 [PATCH] kernel/resource.c: mark static variable __initdata Rasmus Villemoes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®