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>
This commit is contained in:
parent
b75d91f7ca
commit
0006526d78
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user