Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
 * alternative
 */
int __init early_pfn_to_nid(unsigned long pfn)
int __meminit early_pfn_to_nid(unsigned long pfn)
{
	int i;