author: Arnd Bergmann <arnd@arndb.de> 2017-10-12 17:31:46 +0200
committer: Al Viro <viro@zeniv.linux.org.uk> 2017-10-12 11:43:16 -0400
commit: 11e3e8d6d9274bf630859b4c47bc4e4d76f289db
parent: c645b9309839be3f1543255db2abfe120f9d4f26
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c
index e70c039ac190..c4565061da84 100644
--- a/fs/binfmt_elf_fdpic.c
+++ b/fs/binfmt_elf_fdpic.c
@@ -1489,7 +1489,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;