summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorKautuk Consul <consul.kautuk@gmail.com>2011-12-20 02:12:04 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2011-12-20 19:25:04 +0100
commit0006526d78e93c3684c806bf7cf3f67dfa49c3c8 (patch)
tree024ff623dff8301d6b0e27453abd1ba043fd5285 /mm
parentipmi_watchdog: restore settings when BMC reset (diff)
downloadlinux-0006526d78e93c3684c806bf7cf3f67dfa49c3c8.tar.xz
linux-0006526d78e93c3684c806bf7cf3f67dfa49c3c8.zip
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 <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>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmalloc.c2
1 files changed, 1 insertions, 1 deletions
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());