From: Christoph Lameter After we have done this we can now do some typing cleanup. The memory policy layer keeps a policy_zone that specifies the zone that gets memory policies applied. This variable can now be of type enum zone_type. The check_highest_zone function and the build_zonelists funnctionm must then also take a enum zone_type parameter. Plus there are a number of loops over zones that also should use zone_type. We run into some troubles at some points with functions that need a zone_type variable to become -1. Fix that up. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/page_alloc.c~readahead-state-based-method-aging-accounting-apply-type-enum-zone_type-readahead mm/page_alloc.c --- a/mm/page_alloc.c~readahead-state-based-method-aging-accounting-apply-type-enum-zone_type-readahead +++ a/mm/page_alloc.c @@ -1268,7 +1268,7 @@ static inline void show_node(struct zone */ unsigned long nr_free_inactive_pages_node(int nid) { - unsigned int i; + enum zone_type i; unsigned long sum = 0; struct zone *zones = NODE_DATA(nid)->node_zones; _