Commit 0006526d authored by Kautuk Consul's avatar Kautuk Consul Committed by Linus Torvalds

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: default avatarKautuk Consul <consul.kautuk@gmail.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b75d91f7
...@@ -1290,7 +1290,7 @@ static struct vm_struct *__get_vm_area_node(unsigned long size, ...@@ -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 align, unsigned long flags, unsigned long start,
unsigned long end, int node, gfp_t gfp_mask, void *caller) unsigned long end, int node, gfp_t gfp_mask, void *caller)
{ {
static struct vmap_area *va; struct vmap_area *va;
struct vm_struct *area; struct vm_struct *area;
BUG_ON(in_interrupt()); BUG_ON(in_interrupt());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment