From: Rasmus Villemoes <linux@rasmusvillemoes.dk>
To: Dan Williams <dan.j.williams@intel.com>,
Jiang Liu <jiang.liu@linux.intel.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>,
linux-kernel@vger.kernel.org
Subject: [PATCH] kernel/resource.c: mark static variable __initdata
Date: Tue, 1 Dec 2015 15:57:27 +0100 [thread overview]
Message-ID: <1448981848-17827-1-git-send-email-linux@rasmusvillemoes.dk> (raw)
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
reply other threads:[~2015-12-01 14:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1448981848-17827-1-git-send-email-linux@rasmusvillemoes.dk \
--to=linux@rasmusvillemoes.dk \
--cc=dan.j.williams@intel.com \
--cc=jiang.liu@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®