aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-05-10 06:15:27 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-10 12:26:52 -0400
commit6f076f5dd9d227cea2704061048894b00cc0d62b (patch)
tree0c6be41a5d1d77ef78e76ba9d1861a062aef55bd /mm
parenta6a62b69b9f1b0cec0a119c5f4cd2f17d091e8f5 (diff)
early_pfn_to_nid needs to be __meminit
Since it is referenced by memmap_init_zone (which is __meminit) via the early_pfn_in_nid macro when CONFIG_NODES_SPAN_OTHER_NODES is set (which basically means PowerPC 64). This removes a section mismatch warning in those circumstances. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Yasunori Goto <y-goto@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index f9b5d6d5f4d6..ae96dd844432 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2284,7 +2284,7 @@ static int __meminit next_active_region_index_in_nid(int index, int nid)
2284 * was used and there are no special requirements, this is a convenient 2284 * was used and there are no special requirements, this is a convenient
2285 * alternative 2285 * alternative
2286 */ 2286 */
2287int __init early_pfn_to_nid(unsigned long pfn) 2287int __meminit early_pfn_to_nid(unsigned long pfn)
2288{ 2288{
2289 int i; 2289 int i;
2290 2290