Skip to content

Commit

Permalink
mm/vmalloc.c: remove static declaration of va from __get_vm_area_node
Browse files Browse the repository at this point in the history
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 <consul.kautuk@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Kautuk Consul authored and Linus Torvalds committed Dec 20, 2011
1 parent b75d91f commit 0006526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 0006526

Please sign in to comment.