Skip to content

Commit

Permalink
early_pfn_to_nid needs to be __meminit
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Yasunori Goto <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
sfrothwell authored and Linus Torvalds committed May 10, 2007
1 parent a6a62b6 commit 6f076f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6f076f5

Please sign in to comment.