aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/mmu.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2007-10-17 02:26:19 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:42:48 -0400
commit87400c04753674f546c7779abf536d2a3b5e0b7e (patch)
tree7e4707ad13a24add92498290c942d2fe207245bd /fs/proc/mmu.c
parent9bf084f70ffde6521d113593b89461a5bd2a303b (diff)
fs/proc/mmu.c: headers butchery
fs/proc/mmu.c consists of only one function which uses only: 1) struct vmalloc_info * 2) struct vm_struct * 3) struct vmalloc_info 4) vmlist 5) VMALLOC_TOTAL, VMALLOC_START, VMALLOC_END 6) read_lock, read_unlock 7) vmlist_lock 8) struct vm_struct This gives us linux/spinlock.h, asm/pgtable.h, "internal.h", linux/vmalloc.h. asm/pgtable.h uses PKMAP_BASE on i386, for which asm/highmem.h is needed. But, linux/highmem.h is actually used to make it compile everywhere. I'll deal later with this particular i386 surprise. Cross-compile tested on many archs and configs. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/mmu.c')
-rw-r--r--fs/proc/mmu.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/fs/proc/mmu.c b/fs/proc/mmu.c
index 25d2d9c6e329..8ae221dfd010 100644
--- a/fs/proc/mmu.c
+++ b/fs/proc/mmu.c
@@ -8,27 +8,10 @@
8 * as published by the Free Software Foundation; either version 8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version. 9 * 2 of the License, or (at your option) any later version.
10 */ 10 */
11 11#include <linux/spinlock.h>
12#include <linux/types.h>
13#include <linux/errno.h>
14#include <linux/time.h>
15#include <linux/kernel.h>
16#include <linux/string.h>
17#include <linux/mman.h>
18#include <linux/proc_fs.h>
19#include <linux/mm.h>
20#include <linux/mmzone.h>
21#include <linux/pagemap.h>
22#include <linux/swap.h>
23#include <linux/slab.h>
24#include <linux/smp.h>
25#include <linux/seq_file.h>
26#include <linux/hugetlb.h>
27#include <linux/vmalloc.h> 12#include <linux/vmalloc.h>
28#include <asm/uaccess.h> 13#include <linux/highmem.h>
29#include <asm/pgtable.h> 14#include <asm/pgtable.h>
30#include <asm/tlb.h>
31#include <asm/div64.h>
32#include "internal.h" 15#include "internal.h"
33 16
34void get_vmalloc_info(struct vmalloc_info *vmi) 17void get_vmalloc_info(struct vmalloc_info *vmi)