aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2011-01-13 18:46:00 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-13 20:32:34 -0500
commite5a5623b28198aa91ea71ee5d3846757fc76bc87 (patch)
tree6fad408973a428a0ca2bdffd0c30a7c5af400ec9
parentf3a310bc4e5ce7e55e1c8e25c31e63af017f3e50 (diff)
mm: remove unused get_vm_area_node
get_vm_area_node() is unused in the kernel and can thus be removed. Signed-off-by: David Rientjes <rientjes@google.com> Cc: Christoph Lameter <cl@linux.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--include/linux/vmalloc.h3
-rw-r--r--mm/vmalloc.c7
2 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h
index 44b54f619ac6..cb73c755fac8 100644
--- a/include/linux/vmalloc.h
+++ b/include/linux/vmalloc.h
@@ -90,9 +90,6 @@ extern struct vm_struct *__get_vm_area_caller(unsigned long size,
90 unsigned long flags, 90 unsigned long flags,
91 unsigned long start, unsigned long end, 91 unsigned long start, unsigned long end,
92 void *caller); 92 void *caller);
93extern struct vm_struct *get_vm_area_node(unsigned long size,
94 unsigned long flags, int node,
95 gfp_t gfp_mask);
96extern struct vm_struct *remove_vm_area(const void *addr); 93extern struct vm_struct *remove_vm_area(const void *addr);
97 94
98extern int map_vm_area(struct vm_struct *area, pgprot_t prot, 95extern int map_vm_area(struct vm_struct *area, pgprot_t prot,
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 48245af07b10..78ec9d8bc57c 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -1315,13 +1315,6 @@ struct vm_struct *get_vm_area_caller(unsigned long size, unsigned long flags,
1315 -1, GFP_KERNEL, caller); 1315 -1, GFP_KERNEL, caller);
1316} 1316}
1317 1317
1318struct vm_struct *get_vm_area_node(unsigned long size, unsigned long flags,
1319 int node, gfp_t gfp_mask)
1320{
1321 return __get_vm_area_node(size, 1, flags, VMALLOC_START, VMALLOC_END,
1322 node, gfp_mask, __builtin_return_address(0));
1323}
1324
1325static struct vm_struct *find_vm_area(const void *addr) 1318static struct vm_struct *find_vm_area(const void *addr)
1326{ 1319{
1327 struct vmap_area *va; 1320 struct vmap_area *va;