aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/vmalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/vmalloc.h')
-rw-r--r--include/linux/vmalloc.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h
index 0ec598381f97..3bff87a25a42 100644
--- a/include/linux/vmalloc.h
+++ b/include/linux/vmalloc.h
@@ -182,22 +182,10 @@ pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms)
182# endif 182# endif
183#endif 183#endif
184 184
185struct vmalloc_info {
186 unsigned long used;
187 unsigned long largest_chunk;
188};
189
190#ifdef CONFIG_MMU 185#ifdef CONFIG_MMU
191#define VMALLOC_TOTAL (VMALLOC_END - VMALLOC_START) 186#define VMALLOC_TOTAL (VMALLOC_END - VMALLOC_START)
192extern void get_vmalloc_info(struct vmalloc_info *vmi);
193#else 187#else
194
195#define VMALLOC_TOTAL 0UL 188#define VMALLOC_TOTAL 0UL
196#define get_vmalloc_info(vmi) \
197do { \
198 (vmi)->used = 0; \
199 (vmi)->largest_chunk = 0; \
200} while (0)
201#endif 189#endif
202 190
203#endif /* _LINUX_VMALLOC_H */ 191#endif /* _LINUX_VMALLOC_H */