diff options
author | Tejun Heo <tj@kernel.org> | 2010-09-03 18:22:47 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2010-10-02 10:25:25 +0300 |
commit | 0bc14062414d35c269b7c7dc3243a890886e7b38 (patch) | |
tree | 7e9ff49d9261a98de838c360306387aaf2b12729 /mm | |
parent | 84c1cf62465e2fb0a692620dcfeb52323ab03d48 (diff) | |
download | op-kernel-dev-0bc14062414d35c269b7c7dc3243a890886e7b38.zip op-kernel-dev-0bc14062414d35c269b7c7dc3243a890886e7b38.tar.gz |
vmalloc: pcpu_get/free_vm_areas() aren't needed on UP
These functions are used only by percpu memory allocator on SMP.
Don't build them on UP.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Nick Piggin <npiggin@kernel.dk>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmalloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 6b8889d..c623e0c 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -2056,6 +2056,7 @@ void free_vm_area(struct vm_struct *area) } EXPORT_SYMBOL_GPL(free_vm_area); +#ifdef CONFIG_SMP static struct vmap_area *node_to_va(struct rb_node *n) { return n ? rb_entry(n, struct vmap_area, rb_node) : NULL; @@ -2336,6 +2337,7 @@ void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms) free_vm_area(vms[i]); kfree(vms); } +#endif /* CONFIG_SMP */ #ifdef CONFIG_PROC_FS static void *s_start(struct seq_file *m, loff_t *pos) |