Skip to content

Commit

Permalink
x86 boot: more consistently use type int for node ids
Browse files Browse the repository at this point in the history
Everywhere I look, node id's are of type 'int', except in this one
case, which has 'unsigned long'.  Change this one to 'int' as well.
There is nothing special about the way this variable 'nid' is used in
this routine to justify using an unusual type here.

Signed-off-by: Paul Jackson <[email protected]>
Cc: "Yinghai Lu" <[email protected]>
Cc: "Jack Steiner" <[email protected]>
Cc: "Mike Travis" <[email protected]>
Cc: "Huang
Cc: Ying" <[email protected]>
Cc: "Andi Kleen" <[email protected]>
Cc: "Andrew Morton" <[email protected]>
Cc: Paul Jackson <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Paul Jackson authored and Ingo Molnar committed Jul 8, 2008
1 parent e2fc252 commit 2bc0d26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3669,7 +3669,7 @@ static void __init sort_node_map(void)
}

/* Find the lowest pfn for a node */
unsigned long __init find_min_pfn_for_node(unsigned long nid)
unsigned long __init find_min_pfn_for_node(int nid)
{
int i;
unsigned long min_pfn = ULONG_MAX;
Expand All @@ -3680,7 +3680,7 @@ unsigned long __init find_min_pfn_for_node(unsigned long nid)

if (min_pfn == ULONG_MAX) {
printk(KERN_WARNING
"Could not find start_pfn for node %lu\n", nid);
"Could not find start_pfn for node %d\n", nid);
return 0;
}

Expand Down

0 comments on commit 2bc0d26

Please sign in to comment.