mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
9363b9f23c
commit
db99100d2e
1 changed files with 1 additions and 1 deletions
|
@ -3952,7 +3952,7 @@ static void check_for_regular_memory(pg_data_t *pgdat)
|
||||||
void __init free_area_init_nodes(unsigned long *max_zone_pfn)
|
void __init free_area_init_nodes(unsigned long *max_zone_pfn)
|
||||||
{
|
{
|
||||||
unsigned long nid;
|
unsigned long nid;
|
||||||
enum zone_type i;
|
int i;
|
||||||
|
|
||||||
/* Sort early_node_map as initialisation assumes it is sorted */
|
/* Sort early_node_map as initialisation assumes it is sorted */
|
||||||
sort_node_map();
|
sort_node_map();
|
||||||
|
|
Loading…
Reference in a new issue