aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-10-16 01:01:07 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-16 14:21:29 -0400
commitdb99100d2ed40dd9736fcb1adb3657a98f9bcfd9 (patch)
treec098cda0a6172ea9e00fe25d151b87cd1609176c /mm/page_alloc.c
parent9363b9f23c9cc36cc8ef6c05fdf879ee4a96ae92 (diff)
mm/page_alloc.c:free_area_init_nodes() fix inappropriate use of enum
Local variable `i' is a) misleadingly-named for an `enum zone_type' and b) used for indexing zones as well as nodes as well as node_maps. Make it an `int'. Reported-by: Frans Pop <elendil@planet.nl> Cc: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 27b8681139fd..9eb9eb928285 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3952,7 +3952,7 @@ static void check_for_regular_memory(pg_data_t *pgdat)
3952void __init free_area_init_nodes(unsigned long *max_zone_pfn) 3952void __init free_area_init_nodes(unsigned long *max_zone_pfn)
3953{ 3953{
3954 unsigned long nid; 3954 unsigned long nid;
3955 enum zone_type i; 3955 int i;
3956 3956
3957 /* Sort early_node_map as initialisation assumes it is sorted */ 3957 /* Sort early_node_map as initialisation assumes it is sorted */
3958 sort_node_map(); 3958 sort_node_map();