Commit 6f076f5d authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Linus Torvalds

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Cc: Yasunori Goto <y-goto@jp.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a6a62b69
...@@ -2284,7 +2284,7 @@ static int __meminit next_active_region_index_in_nid(int index, int nid) ...@@ -2284,7 +2284,7 @@ static int __meminit next_active_region_index_in_nid(int index, int nid)
* was used and there are no special requirements, this is a convenient * was used and there are no special requirements, this is a convenient
* alternative * alternative
*/ */
int __init early_pfn_to_nid(unsigned long pfn) int __meminit early_pfn_to_nid(unsigned long pfn)
{ {
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment