From: Paul Mundt <lethal@linux-sh.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: [PATCH -mm] mm: Fix memory hotplug + sparsemem build.
Date: Tue, 11 Sep 2007 16:25:07 +0900 [thread overview]
Message-ID: <20070911072507.GB19260@linux-sh.org> (raw)
Building with CONFIG_MEMORY_HOTPLUG_SPARSE enabled results in:
CC mm/memory_hotplug.o
mm/memory_hotplug.c: In function 'online_pages':
mm/memory_hotplug.c:215: error: 'struct zone' has no member named 'node'
make[1]: *** [mm/memory_hotplug.o] Error 1
make: *** [mm] Error 2
Fix it up.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
--
mm/memory_hotplug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.23-rc4-mm1.orig/mm/memory_hotplug.c 2007-09-11 15:15:56.000000000 +0900
+++ linux-2.6.23-rc4-mm1/mm/memory_hotplug.c 2007-09-11 16:20:03.000000000 +0900
@@ -212,7 +212,7 @@
zone->present_pages += onlined_pages;
zone->zone_pgdat->node_present_pages += onlined_pages;
if (onlined_pages)
- node_set_state(zone->node, N_HIGH_MEMORY);
+ node_set_state(zone_to_nid(zone), N_HIGH_MEMORY);
setup_per_zone_pages_min();
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2007-09-11 7:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-11 7:25 Paul Mundt [this message]
2007-09-11 8:18 ` Yasunori Goto
2007-09-11 8:25 ` Paul Mundt
2007-09-11 9:15 ` Andy Whitcroft
2007-09-11 9:37 ` Yasunori Goto
2007-09-14 1:44 ` Andrew Morton
2007-09-14 2:02 ` Yasunori Goto
2007-09-14 2:41 ` Andrew Morton
2007-09-14 5:14 ` Yasunori Goto
2007-09-14 14:09 ` Lee Schermerhorn
2007-09-14 20:51 ` Andrew Morton
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=20070911072507.GB19260@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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