diff options
author | Paul Jackson <pj@sgi.com> | 2008-06-22 10:22:17 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 06:51:38 -0400 |
commit | 2bc0d2615a15a93d344abbe8cb1b9056122bce9d (patch) | |
tree | 8011b668497aac0870119dda987de6501c5d507d /mm/page_alloc.c | |
parent | e2fc252e0ce695b4c4abe27bb073c35bd0d73252 (diff) |
x86 boot: more consistently use type int for node ids
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 <pj@sgi.com>
Cc: "Yinghai Lu" <yhlu.kernel@gmail.com>
Cc: "Jack Steiner" <steiner@sgi.com>
Cc: "Mike Travis" <travis@sgi.com>
Cc: "Huang
Cc: Ying" <ying.huang@intel.com>
Cc: "Andi Kleen" <andi@firstfloor.org>
Cc: "Andrew Morton" <akpm@linux-foundation.org>
Cc: Paul Jackson <pj@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index c09c2c8d2c6a..b604c64a0337 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -3669,7 +3669,7 @@ static void __init sort_node_map(void) | |||
3669 | } | 3669 | } |
3670 | 3670 | ||
3671 | /* Find the lowest pfn for a node */ | 3671 | /* Find the lowest pfn for a node */ |
3672 | unsigned long __init find_min_pfn_for_node(unsigned long nid) | 3672 | unsigned long __init find_min_pfn_for_node(int nid) |
3673 | { | 3673 | { |
3674 | int i; | 3674 | int i; |
3675 | unsigned long min_pfn = ULONG_MAX; | 3675 | unsigned long min_pfn = ULONG_MAX; |
@@ -3680,7 +3680,7 @@ unsigned long __init find_min_pfn_for_node(unsigned long nid) | |||
3680 | 3680 | ||
3681 | if (min_pfn == ULONG_MAX) { | 3681 | if (min_pfn == ULONG_MAX) { |
3682 | printk(KERN_WARNING | 3682 | printk(KERN_WARNING |
3683 | "Could not find start_pfn for node %lu\n", nid); | 3683 | "Could not find start_pfn for node %d\n", nid); |
3684 | return 0; | 3684 | return 0; |
3685 | } | 3685 | } |
3686 | 3686 | ||