* [PATCH 1/1] vmalloc: Remove static declaration of va from __get_vm_area_node
@ 2011-12-08 7:50 Kautuk Consul
2011-12-08 7:50 ` David Rientjes
0 siblings, 1 reply; 2+ messages in thread
From: Kautuk Consul @ 2011-12-08 7:50 UTC (permalink / raw)
To: Andrew Morton, Joe Perches, David Rientjes, Minchan Kim, David Vrabel
Cc: linux-mm, linux-kernel, Kautuk Consul
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 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 3231bf3..173562c 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());
--
1.7.6
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH 1/1] vmalloc: Remove static declaration of va from __get_vm_area_node
2011-12-08 7:50 [PATCH 1/1] vmalloc: Remove static declaration of va from __get_vm_area_node Kautuk Consul
@ 2011-12-08 7:50 ` David Rientjes
0 siblings, 0 replies; 2+ messages in thread
From: David Rientjes @ 2011-12-08 7:50 UTC (permalink / raw)
To: Kautuk Consul
Cc: Andrew Morton, Joe Perches, Minchan Kim, David Vrabel, linux-mm,
linux-kernel
On Thu, 8 Dec 2011, Kautuk Consul wrote:
> 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>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-08 7:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-08 7:50 [PATCH 1/1] vmalloc: Remove static declaration of va from __get_vm_area_node Kautuk Consul
2011-12-08 7:50 ` David Rientjes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox