projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9363b9f
)
mm/page_alloc.c:free_area_init_nodes() fix inappropriate use of enum
author
Andrew Morton
<
[email protected]
>
Thu, 16 Oct 2008 05:01:07 +0000
(22:01 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 16 Oct 2008 18:21:29 +0000
(11:21 -0700)
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 <
[email protected]
>
Cc: Mel Gorman <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/page_alloc.c
patch
|
blob
|
history
diff --git
a/mm/page_alloc.c
b/mm/page_alloc.c
index 27b8681139fdb71e4d0da204ecc4a65fc3f7a1b5..9eb9eb92828510efbc7100addea5fa766c8f48ea 100644
(file)
--- a/
mm/page_alloc.c
+++ b/
mm/page_alloc.c
@@
-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)
{
unsigned long nid;
-
enum zone_type
i;
+
int
i;
/* Sort early_node_map as initialisation assumes it is sorted */
sort_node_map();