]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
vmalloc: Remove static declaration of va from __get_vm_area_node
authorKautuk Consul <consul.kautuk@gmail.com>
Thu, 8 Dec 2011 07:50:21 +0000 (13:20 +0530)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 Dec 2011 07:19:13 +0000 (18:19 +1100)
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>
mm/vmalloc.c

index 51c3554e1c353660a9a790729acd57a66bf3cf68..8ae76670fb2c4087fc667ddac47bcff0932a4c97 100644 (file)
@@ -1315,7 +1315,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());