From: Kautuk Consul Date: Tue, 20 Dec 2011 01:12:04 +0000 (-0800) Subject: mm/vmalloc.c: remove static declaration of va from __get_vm_area_node X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0006526d78e93c3684c806bf7cf3f67dfa49c3c8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mm/vmalloc.c: remove static declaration of va from __get_vm_area_node Static storage is not required for the struct vmap_area in __get_vm_area_node. Removing "static" to store this variable on the stack instead. Signed-off-by: Kautuk Consul Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 1d8b32f07139..27be2f0d4cb7 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1290,7 +1290,7 @@ static struct vm_struct *__get_vm_area_node(unsigned long size, unsigned long align, unsigned long flags, unsigned long start, unsigned long end, int node, gfp_t gfp_mask, void *caller) { - static struct vmap_area *va; + struct vmap_area *va; struct vm_struct *area; BUG_ON(in_interrupt());