Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[sfrench/cifs-2.6.git] / fs / binfmt_elf_fdpic.c
index 5429b035e249bfb6eb0d7887ccca0353535af952..429326b6e2e7088dc1c67c770122beb7b004152b 100644 (file)
@@ -1498,7 +1498,9 @@ static bool elf_fdpic_dump_segments(struct coredump_params *cprm)
        struct vm_area_struct *vma;
 
        for (vma = current->mm->mmap; vma; vma = vma->vm_next) {
+#ifdef CONFIG_MMU
                unsigned long addr;
+#endif
 
                if (!maydump(vma, cprm->mm_flags))
                        continue;