From: Paul Jackson Date: Sun, 22 Jun 2008 14:22:17 +0000 (-0700) Subject: x86 boot: more consistently use type int for node ids X-Git-Tag: v2.6.27-rc1~1106^2~192 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2bc0d2615a15a93d344abbe8cb1b9056122bce9d;p=linux-2.6-omap-h63xx.git 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 Cc: "Yinghai Lu" Cc: "Jack Steiner" Cc: "Mike Travis" Cc: "Huang Cc: Ying" Cc: "Andi Kleen" Cc: "Andrew Morton" Cc: Paul Jackson Signed-off-by: Ingo Molnar --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index c09c2c8d2c6..b604c64a033 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -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; @@ -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; }