From: Adrian Bunk This patch makes needlessly global code static. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- mm/page_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN mm/page_alloc.c~mm-page_allocc-make-code-static mm/page_alloc.c --- a/mm/page_alloc.c~mm-page_allocc-make-code-static +++ a/mm/page_alloc.c @@ -149,7 +149,7 @@ static unsigned long __meminitdata dma_r static unsigned long __meminitdata node_boundary_end_pfn[MAX_NUMNODES]; #endif /* CONFIG_MEMORY_HOTPLUG_RESERVE */ unsigned long __initdata required_kernelcore; - unsigned long __initdata required_movablecore; + static unsigned long __initdata required_movablecore; unsigned long __meminitdata zone_movable_pfn[MAX_NUMNODES]; /* movable_zone is the "real" zone pages in ZONE_MOVABLE are taken from */ @@ -3645,7 +3645,7 @@ unsigned long __init find_max_pfn_with_a * Sum pages in active regions for movable zone. * Populate N_HIGH_MEMORY for calculating usable_nodes. */ -unsigned long __init early_calculate_totalpages(void) +static unsigned long __init early_calculate_totalpages(void) { int i; unsigned long totalpages = 0; _