Re: some questions about __get_vm_area_node

From: David Rientjes
Date: Thu Apr 05 2012 - 02:09:38 EST


On Thu, 5 Apr 2012, vichy wrote:

> Hi all:
> I have a question about __get_vm_area_node.
> Q. Why we announce "static struct vmap_area *va;" instead of "struct
> vmap_area *va;"
> I cannot see is there any benefit to take this variable as static.
>

You're right, there's no need for it to be static. However, you're
looking at an old tree.

This was fixed with 0006526d78e9 ("mm/vmalloc.c: remove static declaration
of va from __get_vm_area_node") in 3.3.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/