]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - mm/vmalloc.c
vmalloc: pcpu_get/free_vm_areas() aren't needed on UP
[net-next-2.6.git] / mm / vmalloc.c
index 6b8889da69a60612301c2bd26244ae0f3e1e1966..c623e0ce3f0037614c68aff82be764f11b6f0148 100644 (file)
@@ -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)