From: Andrew Morton Fix CONFIG_MMU=n build (vmalloc_op undefined) Cc: Arjan van de Ven Cc: Christoph Lameter Cc: Hugh Dickins Cc: Nick Piggin Signed-off-by: Andrew Morton --- fs/proc/proc_misc.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN fs/proc/proc_misc.c~vmalloc-show-vmalloced-areas-via-proc-vmallocinfo-fix-2 fs/proc/proc_misc.c --- a/fs/proc/proc_misc.c~vmalloc-show-vmalloced-areas-via-proc-vmallocinfo-fix-2 +++ a/fs/proc/proc_misc.c @@ -456,6 +456,7 @@ static const struct file_operations proc #endif #endif +#ifdef CONFIG_MMU static int vmalloc_open(struct inode *inode, struct file *file) { return seq_open(file, &vmalloc_op); @@ -467,6 +468,7 @@ static const struct file_operations proc .llseek = seq_lseek, .release = seq_release, }; +#endif static int show_stat(struct seq_file *p, void *v) { @@ -881,7 +883,9 @@ void __init proc_misc_init(void) create_seq_entry("slab_allocators", 0 ,&proc_slabstats_operations); #endif #endif +#ifdef CONFIG_MMU proc_create("vmallocinfo", S_IRUSR, NULL, &proc_vmalloc_operations); +#endif create_seq_entry("buddyinfo",S_IRUGO, &fragmentation_file_operations); create_seq_entry("pagetypeinfo", S_IRUGO, &pagetypeinfo_file_ops); create_seq_entry("vmstat",S_IRUGO, &proc_vmstat_file_operations); _