summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-09-03 18:22:47 +0200
committerPekka Enberg <penberg@kernel.org>2010-10-02 10:25:25 +0300
commit0bc14062414d35c269b7c7dc3243a890886e7b38 (patch)
tree7e9ff49d9261a98de838c360306387aaf2b12729 /include
parent84c1cf62465e2fb0a692620dcfeb52323ab03d48 (diff)
downloadop-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 'include')
-rw-r--r--include/linux/vmalloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h
index 01c2145..63a4fe6 100644
--- a/include/linux/vmalloc.h
+++ b/include/linux/vmalloc.h
@@ -117,10 +117,12 @@ extern rwlock_t vmlist_lock;
extern struct vm_struct *vmlist;
extern __init void vm_area_register_early(struct vm_struct *vm, size_t align);
+#ifdef CONFIG_SMP
struct vm_struct **pcpu_get_vm_areas(const unsigned long *offsets,
const size_t *sizes, int nr_vms,
size_t align, gfp_t gfp_mask);
void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms);
+#endif
#endif /* _LINUX_VMALLOC_H */
OpenPOWER on IntegriCloud